Guest User

Untitled

a guest
Jul 21st, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. Given /^I search a standard SIG "([^\"]*)" for locale "([^\"]*)" and drug "([^\"]*)"$/ do |sig, locale, drug|
  2. Given %Q[a sig exists with token: "#{sig}"]
  3. # And %Q[a locale exists with name: "#{locale}"]
  4. Locale.find_or_create_by_name(locale)
  5. And %Q[a translation exists with translatable: the sig, locale: the locale]
  6. And %Q[a drug exists with name: "#{drug}"]
  7. And %Q[I am on the homepage]
  8. When %Q[I select "#{locale}" from "Language"]
  9. And %Q[I select "#{drug}" from "Drug"]
  10. And %Q[I fill in "SIG" with "#{sig}"]
  11. And %Q[I press "Search"]
  12. end
  13.  
  14. ## Incoherent!
  15.  
  16. Validation failed: Locale can't be blank (ActiveRecord::RecordInvalid)
  17. ./features/step_definitions/pickle_steps.rb:5:in `/^((?:(?:)|(?:(?:a|an|another|the|that) )?(?:(?:(?:(?:first|last|(?:\d+(?:st|nd|rd|th))) )?(?:non[_ ]standard[_ ]request|label|user[_ ]location|location|drug|location[_ ]locale|setting|sig|translation|warning|locale|warning[_ ]label|user))|(?:(?:non[_ ]standard[_ ]request|label|user[_ ]location|location|drug|location[_ ]locale|setting|sig|translation|warning|locale|warning[_ ]label|user)(?::? "(?:[^\"]|\.)*"))))) exists?(?: with ((?:(?:\w+: (?:(?:(?:)|(?:(?:a|an|another|the|that) )?(?:(?:(?:(?:first|last|(?:\d+(?:st|nd|rd|th))) )?(?:non[_ ]standard[_ ]request|label|user[_ ]location|location|drug|location[_ ]locale|setting|sig|translation|warning|locale|warning[_ ]label|user))|(?:(?:non[_ ]standard[_ ]request|label|user[_ ]location|location|drug|location[_ ]locale|setting|sig|translation|warning|locale|warning[_ ]label|user)(?::? "(?:[^\"]|\.)*"))))|(?:"(?:[^\"]|\.)*"|nil|true|false|[+-]?\d+(?:\.\d+)?))), )*(?:\w+: (?:(?:(?:)|(?:(?:a|an|another|the|that) )?(?:(?:(?:(?:first|last|(?:\d+(?:st|nd|rd|th))) )?(?:non[_ ]standard[_ ]request|label|user[_ ]location|location|drug|location[_ ]locale|setting|sig|translation|warning|locale|warning[_ ]label|user))|(?:(?:non[_ ]standard[_ ]request|label|user[_ ]location|location|drug|location[_ ]locale|setting|sig|translation|warning|locale|warning[_ ]label|user)(?::? "(?:[^\"]|\.)*"))))|(?:"(?:[^\"]|\.)*"|nil|true|false|[+-]?\d+(?:\.\d+)?)))))?$/'
  18. features/labels.feature:30:in `Given I search a standard SIG "Take two" for locale "Russian" and drug "Aspirin"'
Add Comment
Please, Sign In to add comment