Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Given /^I search a standard SIG "([^\"]*)" for locale "([^\"]*)" and drug "([^\"]*)"$/ do |sig, locale, drug|
- Given %Q[a sig exists with token: "#{sig}"]
- # And %Q[a locale exists with name: "#{locale}"]
- Locale.find_or_create_by_name(locale)
- And %Q[a translation exists with translatable: the sig, locale: the locale]
- And %Q[a drug exists with name: "#{drug}"]
- And %Q[I am on the homepage]
- When %Q[I select "#{locale}" from "Language"]
- And %Q[I select "#{drug}" from "Drug"]
- And %Q[I fill in "SIG" with "#{sig}"]
- And %Q[I press "Search"]
- end
- ## Incoherent!
- Validation failed: Locale can't be blank (ActiveRecord::RecordInvalid)
- ./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+)?)))))?$/'
- 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