Guest User

Untitled

a guest
Jul 22nd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. require File.expand_path(File.join(File.dirname(__FILE__), "..", "support", "paths"))
  2.  
  3. Given /^no contacts$/ do
  4. # pending
  5. end
  6.  
  7. Then /^I should have a contact with "([^\"]*)" as "([^\"]*)"$/ do |value, attribute|
  8. assert !Contact.find(:first, :conditions=> { attribute.to_sym => value }).nil?
  9. end
  10.  
  11. Given /^an existing contact with "([^\"]*)" as "([^\"]*)"$/ do |value, attribute|
  12. Contact.create!(attribute.to_sym => value)
  13. end
Add Comment
Please, Sign In to add comment