rspec-json_matcher 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f0ad49fcdce9262e3cf427f4b6b9f4ce9edae45
4
- data.tar.gz: a97a62a5aa6d4fb1faa9b3ff7cc22b6e9b146017
3
+ metadata.gz: 7293cf1f1d54933dbfd6880e11c02e1d0a5abafa
4
+ data.tar.gz: 9754ed84ab5d8ee38a3c6fbd6f8d91859fd56551
5
5
  SHA512:
6
- metadata.gz: 9525e34566d425c926be641e5e24a10d96adc4f089ff08affe090a967b52aa81b637ad8c6c29a9104ccb73c013fa21d7c8b0cd5052c432b343b0ad25cc3f6a19
7
- data.tar.gz: d4dacfb46db4c153b02782a5aaca22debe27372e1b3adec8cd435000726d52137c2460a09655da69418f375b98776f184ab4862beabfb451e2e39521ee40f757
6
+ metadata.gz: d8546c81ea7609d908b0f752904533197d67eaa7d418e6470e1b2f6ae97790428cc4e86ad8e2eac0316ced9029d8cf3bbf8f9dc9ea8b28625277117fb784d54a
7
+ data.tar.gz: 85819e21cafddb65dad53bb0652ebb57d94a5a0f3f671256458057fd02b5a4d5d1f5d72179711fed0695fda59e0aa31d76bd4a07aa96c4af93e962f102e07d99
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.1.2
2
+ * Fix method name for negative case
3
+
1
4
  ## 0.1.2
2
5
  * Convert keys in expectation from Symbol to String
3
6
 
@@ -35,7 +35,7 @@ module RSpec
35
35
  end
36
36
  end
37
37
 
38
- def failure_message_when_negated
38
+ def negative_failure_message
39
39
  if has_parser_error?
40
40
  "expected value not to be parsed as JSON, but succeeded"
41
41
  else
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module JsonMatcher
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
@@ -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.2
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: 2013-12-17 00:00:00.000000000 Z
11
+ date: 2014-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json