diff options
author | Joe Sak <joe@joesak.com> | 2011-03-11 13:21:24 -0600 |
---|---|---|
committer | Joe Sak <joe@joesak.com> | 2011-03-11 13:21:24 -0600 |
commit | b3f95341c3b67123084563bd38f9145b8ef4da78 (patch) | |
tree | 2be1d73388f241f323d43d983f325790628e362f /spec | |
parent | ac7a6f6636912635835ff73320ded4ad1cc73746 (diff) | |
download | refinerycms-blog-b3f95341c3b67123084563bd38f9145b8ef4da78.tar.gz refinerycms-blog-b3f95341c3b67123084563bd38f9145b8ef4da78.tar.bz2 refinerycms-blog-b3f95341c3b67123084563bd38f9145b8ef4da78.zip |
More test coverage for tags: can fill tags in on admin form
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/blog_posts_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/models/blog_posts_spec.rb b/spec/models/blog_posts_spec.rb index 523ddf3..1b96ece 100644 --- a/spec/models/blog_posts_spec.rb +++ b/spec/models/blog_posts_spec.rb @@ -49,13 +49,14 @@ describe BlogPost do describe "tags" do it "acts as taggable" do - Factory(:post).should respond_to(:tag_list) + (post = Factory(:post)).should respond_to(:tag_list) + post.tag_list.should include("chicago") end end describe "authors" do it "are authored" do - BlogPost.instance_methods.map(&:to_sym).include? :author + BlogPost.instance_methods.map(&:to_sym).should include(:author) end end |