Guest User

Untitled

a guest
May 23rd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. Given /^there are a few contacts$/ do
  2. Dupe.stub 2, :people
  3. Dupe.stub 2, :companies
  4. end
  5.  
  6. Then /^I should see all pre-registered contacts$/ do
  7. Dupe.find(:people).each do |person|
  8. Then %{I should see "#{person.first_name} #{person.last_name}"}
  9. end
  10.  
  11. Dupe.find(:companies).each do |company|
  12. Then %{I should see "#{company.name}"}
  13. end
  14.  
  15. end
Add Comment
Please, Sign In to add comment