Last active
December 28, 2015 06:28
-
-
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/
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 /^it should return a response code of "(.+)"$/ do |resp_code| | |
response.code.should == resp_code | |
end |
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 it should return a response code of "301" | |
Then it should return a response code of "200" |
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 it should return a response code of "200" | |
And the response body should contain "successfully updated" |
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 /^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