Skip to content

Instantly share code, notes, and snippets.

@toddsampson
Last active December 28, 2015 06:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toddsampson/7456790 to your computer and use it in GitHub Desktop.
Save toddsampson/7456790 to your computer and use it in GitHub Desktop.
Creating a Reusable Dictionary of Steps in Cucumber blog post: http://www.cloudspace.com/blog/2009/02/18/creating-a-reusable-dictionary-of-steps-in-cucumber/
Then /^it should return a response code of "(.+)"$/ do |resp_code|
response.code.should == resp_code
end
Then it should return a response code of "301"
Then it should return a response code of "200"
Then it should return a response code of "200"
And the response body should contain "successfully updated"
Then /^it should be a successful update$/ do
Then "it should return a response code of \"200\""
And "the response body should contain \"successfully updated\""
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment