blob: e97287e84398d63a2b86b5f9ad9b2e7b010091b1 (
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$/
BlogPost.first.author.login == User.last.login
end
|