blob: d78ca90ee52aa95169f714b980c97a6cef38126b (
plain) (
blame)
1
2
3
4
5
6
7
|
Then /^there should be (\d+) blog posts?$/ do |num|
BlogPost.all.size == num
end
Then /^the blog post should belong to me$/ do
BlogPost.first.author.login == User.last.login
end
|