cucumber-api-steps 0.8 → 0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 |request_type, path, body|
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
+
@@ -1,5 +1,5 @@
1
1
  module Cucumber
2
2
  module ApiSteps
3
- VERSION = "0.8"
3
+ VERSION = "0.9"
4
4
  end
5
5
  end
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 8
9
- version: "0.8"
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 00:00:00 -06:00
17
+ date: 2011-10-18 00:00:00 -06:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency