From b3f95341c3b67123084563bd38f9145b8ef4da78 Mon Sep 17 00:00:00 2001 From: Joe Sak Date: Fri, 11 Mar 2011 13:21:24 -0600 Subject: More test coverage for tags: can fill tags in on admin form --- spec/models/blog_posts_spec.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'spec/models') 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 -- cgit v1.2.3