Skip to content

Instantly share code, notes, and snippets.

@unamashana
Created April 1, 2011 04:28
Show Gist options
  • Save unamashana/897732 to your computer and use it in GitHub Desktop.
Save unamashana/897732 to your computer and use it in GitHub Desktop.
Then I should see :"flash.success.admin_signup" with email: "joedoe@example.com", first_name: "Joe"
Then /^I should see :"([^\"]*)"(?: with #{capture_fields})?$/ do |text, fields|
if page.respond_to? :should
page.should have_content(I18n.t(text, eval("{#{fields}}")))
else
assert page.has_content?(I18n.t(text, eval("{#{fields}}")))
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment