Skip to content

Instantly share code, notes, and snippets.

@pullmonkey
Created March 2, 2011 16:29
Show Gist options
  • Save pullmonkey/851209 to your computer and use it in GitHub Desktop.
Save pullmonkey/851209 to your computer and use it in GitHub Desktop.
# find the JUST created model
Then(/^#{capture_model} was just created(?: with #{capture_fields})?$/) do |name, fields|
find_latest_model!(name, fields)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment