rspec-json_matchers 0.1.0.alpha.2 → 0.1.0.alpha.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91e5b7f422c49f7e1400992d4a279cf2d491c856
|
4
|
+
data.tar.gz: 69a46b761332223e2745fa806dcb860479843bd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d0fd77345e589549cdb269cf4862014d768e37df32e953fa03847906046f2ee7beadf31d3e77f75a592b18858c7e3fa22332fc3bd86ab22a49fbdd5d1feb51d
|
7
|
+
data.tar.gz: b284ea87643590e87ba19e3a8ae9bc82f7113e0da2679e3b8d826d94015aac923ca373f3ad4d4b300963d0714022dacbe5df908175796d75fe5fbb9e9e5ff50b
|
data/doc/Story.md
CHANGED
@@ -123,7 +123,6 @@ In the near future:
|
|
123
123
|
- Add `CONTRIBUTING.md` if appropriate
|
124
124
|
|
125
125
|
There are several features that might be considered to be implemented in the future:
|
126
|
-
- Built-in "expectation" for "type or null"
|
127
126
|
- Built-in "expectation" for "date"
|
128
127
|
- Path matching feature in [`airborne`](https://github.com/brooklynDev/airborne)
|
129
128
|
- `be_json.with_types` which only accepts classes (only? not sure)
|
@@ -69,21 +69,17 @@ module RSpec
|
|
69
69
|
# (e.g. using `should`)
|
70
70
|
#
|
71
71
|
# @return [String]
|
72
|
-
def
|
72
|
+
def failure_message
|
73
73
|
"expected value to be parsed as JSON, but failed"
|
74
74
|
end
|
75
|
-
alias_method :failure_message,
|
76
|
-
:failure_message_for_positive
|
77
75
|
|
78
76
|
# Failure message displayed when a negative example failed
|
79
77
|
# (e.g. using `should_not`)
|
80
78
|
#
|
81
79
|
# @return [String]
|
82
|
-
def
|
80
|
+
def failure_message_when_negated
|
83
81
|
"expected value not to be parsed as JSON, but succeeded"
|
84
82
|
end
|
85
|
-
alias_method :failure_message_when_negated,
|
86
|
-
:failure_message_for_negative
|
87
83
|
|
88
84
|
private
|
89
85
|
|
@@ -87,14 +87,14 @@ module RSpec
|
|
87
87
|
self
|
88
88
|
end
|
89
89
|
|
90
|
-
# Overrides {BeJsonMatcher#
|
91
|
-
def
|
90
|
+
# Overrides {BeJsonMatcher#failure_message}
|
91
|
+
def failure_message
|
92
92
|
return super if has_parser_error?
|
93
93
|
failure_message_for(true)
|
94
94
|
end
|
95
95
|
|
96
|
-
# Overrides {BeJsonMatcher#
|
97
|
-
def
|
96
|
+
# Overrides {BeJsonMatcher#failure_message_when_negated}
|
97
|
+
def failure_message_when_negated
|
98
98
|
return super if has_parser_error?
|
99
99
|
failure_message_for(false)
|
100
100
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-json_matchers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.alpha.
|
4
|
+
version: 0.1.0.alpha.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PikachuEXE
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|