rspec-json_matcher 0.0.5 → 0.0.6
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/version.rb +1 -1
- data/lib/rspec/json_matcher.rb +1 -1
- data/spec/rspec/json_matcher_spec.rb +11 -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: 9b01935d9caff916affc9015bb7210a04314b351
|
4
|
+
data.tar.gz: f781b67128b9852ca4d5adbd4a603c07cc324568
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4981405b7a1833d0255d79b67aebea2cb05051f682f13492546905c766424528b35b5cd7a7770fcfa67e189f32587f5060cb276cb6215ae860e8892bdaa328df
|
7
|
+
data.tar.gz: 3b073a2a714d677a3f787de3d77fefcd946511503f2b68ed8f359dfb3088ad440a5bad6e7e2496ba7875b88a6f524c33986a356cb9371a1f55b435c5d3ddd8f7
|
data/CHANGELOG.md
CHANGED
data/lib/rspec/json_matcher.rb
CHANGED
@@ -17,6 +17,17 @@ describe RSpec::JsonMatcher do
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
+
context "with non-existent keys in JSON" do
|
21
|
+
it "does not match" do
|
22
|
+
{
|
23
|
+
"a" => nil,
|
24
|
+
}.to_json.should_not be_json(
|
25
|
+
"a" => nil,
|
26
|
+
"b" => nil,
|
27
|
+
)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
20
31
|
context "with valid JSON" do
|
21
32
|
it "matches with handy patterns" do
|
22
33
|
[
|
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.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|