Skip to content

Instantly share code, notes, and snippets.

@RobertBrewitz
Created September 18, 2009 14:48
Show Gist options
  • Save RobertBrewitz/189087 to your computer and use it in GitHub Desktop.
Save RobertBrewitz/189087 to your computer and use it in GitHub Desktop.
Cucumber step definition
##
# Finds a element with the id flash-#{name}
#
# Then I should receive flash success; if an element with id flash-success is displayed it passses.
##
Then /^I should receive flash (.*)$/ do |name|
within("[id=flash-#{name}]"){}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment