spec/post_comments_spec.rb in cachai-0.2.4 vs spec/post_comments_spec.rb in cachai-0.2.5
- old
+ new
@@ -100,10 +100,15 @@
expect do
post_comment
end.to change(Cachai::Post, :count).by(1)
end
+ it 'sets a created_at timestamp on new post' do
+ post_comment
+ Cachai::Post.last.created_at.should_not be_nil
+ end
+
it 'creates a new response for that post' do
expect do
post_comment
end.to change(Cachai::Response, :count).by(1)
end
@@ -147,10 +152,9 @@
it 'does not create a new response for that post' do
expect do
post_comment
end.not_to change(Cachai::Response, :count)
end
-
end
end