Created
April 1, 2011 04:28
-
-
Save unamashana/897732 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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