rspec_structure_matcher 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/lib/rspec_structure_matcher.rb +1 -0
- data/lib/support_methods.rb +0 -4
- data/lib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 193cd69f56ffdd252aaf2737ff554fed0b3ae767
|
4
|
+
data.tar.gz: e103d7eee610617d6b33bbeac712f1ff8ce2f678
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99823fa6ba3e1b747e2487af5ccb9858df3dbb0985a33a056d045be6fc44d4d911742a789cc91b51ab4106758e7e9f87c0267c3b2ce1a4bbecbeb4b1bd5e798c
|
7
|
+
data.tar.gz: 3c48db7cb3414c6f6a824ee45409250e51c090b50eedef1a7d94c264f96d790564932edef9004e95656537e33407e079f7395b2f2ddfb29f96867087e64895c7
|
data/README.md
CHANGED
@@ -18,6 +18,12 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
$ gem install rspec_structure_matcher
|
20
20
|
|
21
|
+
Then mixin/include the helper methods into your RSpec tests by adding them to the `RSpec.configure` block, usually found in `spec_helper.rb` or `rails_helper.rb`:
|
22
|
+
|
23
|
+
RSpec.configure do |config|
|
24
|
+
config.include HaveStructureMatcher::Methods
|
25
|
+
end
|
26
|
+
|
21
27
|
## Usage
|
22
28
|
|
23
29
|
Define an expected response structure:
|
data/lib/support_methods.rb
CHANGED
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec_structure_matcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tony Marklove
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
version: '0'
|
109
109
|
requirements: []
|
110
110
|
rubyforge_project:
|
111
|
-
rubygems_version: 2.
|
111
|
+
rubygems_version: 2.5.1
|
112
112
|
signing_key:
|
113
113
|
specification_version: 4
|
114
114
|
summary: Rspec matchers for structured JSON responses.
|