aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/blog_posts_spec.rb5
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