cucumber-api-steps 0.6 → 0.7
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 +4 -4
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) "([^"]*)"( with the following:)?$/ do |request_type, path, body|
|
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
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber-api-steps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: "0.
|
8
|
+
- 7
|
9
|
+
version: "0.7"
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jay Zeschin
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-10-
|
17
|
+
date: 2011-10-17 00:00:00 -06:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|