Skip to content

Instantly share code, notes, and snippets.

@qrush
Created November 27, 2008 03:59
Show Gist options
  • Save qrush/29678 to your computer and use it in GitHub Desktop.
Save qrush/29678 to your computer and use it in GitHub Desktop.
Given /I am on the edit make page for "(\w+)"/ do |name|
@id = Make.find_by_name(name).id
visits edit_make_url(@id)
end
When /its name should be updated to "(\w+)"/ do |name|
Make.find(@id).name.should == name
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment