aboutsummaryrefslogblamecommitdiffstats
path: root/features/step_definitions/authors_steps.rb
blob: eaa5f32ceb14de2601207d745354e0e6bddcc51f (plain) (tree)
1
2
3
4
5
6
7
                                                   
                                      

   
                                             
                                                                        
  
Then /^there should be (\d+) blog posts?$/ do |num|
  ::Refinery::BlogPost.all.size == num
end

Then /^the blog post should belong to me$/ do
  ::Refinery::BlogPost.first.author.login == ::Refinery::User.last.login
end