webstub 1.1.3 → 1.1.4
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.
- checksums.yaml +4 -4
- data/lib/webstub/stub.rb +1 -1
- data/lib/webstub/version.rb +1 -1
- data/spec/stub_spec.rb +7 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a2fde9e9d4804340eb7277944fb7eb0209a15c8
|
4
|
+
data.tar.gz: 48037f7211c379455be860d31f6f1a62fecbe422
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d5d5de8974ee5fa30d38d6c8092d4c42ef1b8bccf6bead31678fc44141a069fcc39174f7d0e19ce210141f8a6c58b69a64d85c2da0f429c67d28d0d99023cca
|
7
|
+
data.tar.gz: cdfae6a5dd49a258865d8374041836a4202ceedf98b5598a052df91338cd639e1a6cbcd63b3ef863191a1c269a1f3ec8a144fc4264559f801f5f3007a31b5d05
|
data/lib/webstub/stub.rb
CHANGED
data/lib/webstub/version.rb
CHANGED
data/spec/stub_spec.rb
CHANGED
@@ -102,15 +102,19 @@ describe WebStub::Stub do
|
|
102
102
|
|
103
103
|
describe "query string" do
|
104
104
|
before do
|
105
|
-
@stub = WebStub::Stub.new(:get, "http://www.yahoo.com/search?count=1")
|
105
|
+
@stub = WebStub::Stub.new(:get, "http://www.yahoo.com/search?count=1&q=whiskey")
|
106
106
|
end
|
107
107
|
|
108
108
|
it "returns true when the query string matches" do
|
109
|
-
@stub.matches?(:get, "http://www.yahoo.com/search?count=1").should.be.true
|
109
|
+
@stub.matches?(:get, "http://www.yahoo.com/search?count=1&q=whiskey").should.be.true
|
110
110
|
end
|
111
111
|
|
112
112
|
it "strips any trailing &" do
|
113
|
-
@stub.matches?(:get, "http://www.yahoo.com/search?count=1&").should.be.true
|
113
|
+
@stub.matches?(:get, "http://www.yahoo.com/search?count=1&q=whiskey&").should.be.true
|
114
|
+
end
|
115
|
+
|
116
|
+
it "does not depend on the order of query parameters" do
|
117
|
+
@stub.matches?(:get, "http://www.yahoo.com/search?q=whiskey&count=1").should.be.true
|
114
118
|
end
|
115
119
|
end
|
116
120
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webstub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Green
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|