cucumber-http 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cucumber/http/http_steps.rb +0 -22
- data/lib/cucumber/http/version.rb +1 -1
- metadata +2 -2
@@ -79,25 +79,3 @@ Then /^the response body should be valid (XML|JSON)$/ do |type|
|
|
79
79
|
expect { JSON.parse(response[:body]) }.not_to raise_error
|
80
80
|
end
|
81
81
|
end
|
82
|
-
|
83
|
-
Then /^the JSON response should( not)? be '([^']*)'$/ do |negative, expected_response|
|
84
|
-
expected = JSON.parse(expected_response)
|
85
|
-
actual = JSON.parse(response[:body])
|
86
|
-
|
87
|
-
if negative
|
88
|
-
expect(actual).not_to eq(expected)
|
89
|
-
else
|
90
|
-
expect(actual).to eq(expected)
|
91
|
-
end
|
92
|
-
end
|
93
|
-
|
94
|
-
Then /^the JSON response should( not)? be:$/ do |negative, expected_response|
|
95
|
-
expected = JSON.parse(expected_response)
|
96
|
-
actual = JSON.parse(response[:body])
|
97
|
-
|
98
|
-
if negative
|
99
|
-
expect(actual).not_to eq(expected)
|
100
|
-
else
|
101
|
-
expect(actual).to eq(expected)
|
102
|
-
end
|
103
|
-
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-10-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cucumber
|