cucumber-api-steps 0.8 → 0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/cucumber/api_steps.rb +5 -1
- data/lib/cucumber/api_steps/version.rb +1 -1
- metadata +4 -4
data/lib/cucumber/api_steps.rb
CHANGED
|
@@ -21,7 +21,10 @@ 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 |
|
|
24
|
+
When /^I send a (GET|POST|PUT|DELETE) request (?:for|to) "([^"]*)"(?: with the following:)?$/ do |*args|
|
|
25
|
+
request_type = args.shift
|
|
26
|
+
path = args.shift
|
|
27
|
+
body = args.shift
|
|
25
28
|
if body.present?
|
|
26
29
|
page.driver.send(request_type.downcase.to_sym, path, body)
|
|
27
30
|
else
|
|
@@ -70,3 +73,4 @@ Then /^the XML response should have "([^"]*)" with the text "([^"]*)"$/ do |xpat
|
|
|
70
73
|
assert elements.find { |e| e.text == text }, "found elements but could not find #{text} in:\n#{elements.inspect}"
|
|
71
74
|
end
|
|
72
75
|
end
|
|
76
|
+
|
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: 25
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
version: "0.
|
|
8
|
+
- 9
|
|
9
|
+
version: "0.9"
|
|
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-18 00:00:00 -06:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|