cucumber-api-steps 0.5 → 0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cucumber/api_steps.rb +1 -1
- data/lib/cucumber/api_steps/version.rb +1 -1
- metadata +3 -3
data/lib/cucumber/api_steps.rb
CHANGED
@@ -21,7 +21,7 @@ When /^I authenticate as the user "([^"]*)" with the password "([^"]*)"$/ do |us
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
|
-
When /^I send a (GET|POST|PUT|DELETE) request (?:for|to) "([^"]*)"(
|
24
|
+
When /^I send a (GET|POST|PUT|DELETE) request (?:for|to) "([^"]*)"( with the following:)?$/ do |request_type, path, body|
|
25
25
|
if body.present?
|
26
26
|
page.driver.send(request_type.downcase.to_sym, path, body)
|
27
27
|
else
|
metadata
CHANGED