rspec-json_matcher 0.1.2 → 0.1.3
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/CHANGELOG.md +3 -0
- data/lib/rspec/json_matcher/abstract_matcher.rb +1 -1
- data/lib/rspec/json_matcher/version.rb +1 -1
- data/spec/rspec/json_matcher_spec.rb +12 -0
- 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: 7293cf1f1d54933dbfd6880e11c02e1d0a5abafa
|
4
|
+
data.tar.gz: 9754ed84ab5d8ee38a3c6fbd6f8d91859fd56551
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8546c81ea7609d908b0f752904533197d67eaa7d418e6470e1b2f6ae97790428cc4e86ad8e2eac0316ced9029d8cf3bbf8f9dc9ea8b28625277117fb784d54a
|
7
|
+
data.tar.gz: 85819e21cafddb65dad53bb0652ebb57d94a5a0f3f671256458057fd02b5a4d5d1f5d72179711fed0695fda59e0aa31d76bd4a07aa96c4af93e962f102e07d99
|
data/CHANGELOG.md
CHANGED
@@ -217,6 +217,18 @@ describe RSpec::JsonMatcher do
|
|
217
217
|
end
|
218
218
|
end
|
219
219
|
|
220
|
+
context "with partially different set" do
|
221
|
+
it "does not match" do
|
222
|
+
{
|
223
|
+
"a" => 1,
|
224
|
+
"b" => 2,
|
225
|
+
}.to_json.should_not be_json_including(
|
226
|
+
"a" => 0,
|
227
|
+
"b" => 2,
|
228
|
+
)
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
220
232
|
context "with same keys and values" do
|
221
233
|
it "matches" do
|
222
234
|
{
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-json_matcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|