Skip to content

Instantly share code, notes, and snippets.

@RobertDober
Created January 30, 2015 11:38
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 RobertDober/3fb588830d6050113b19 to your computer and use it in GitHub Desktop.
Save RobertDober/3fb588830d6050113b19 to your computer and use it in GitHub Desktop.
Given(/^the URL of the platform$/) do
@password = something_correct
# ...
end
###
### Bad example, just to show the technique
###
Given (/^the URL of the platform with a bad password$/) do
@password = something_less_correct
#...
end
When (/^I send the request$/) do
http.connect url, user: @user, password: @password
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment