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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f4c12a199c9b2b9e255d25a96ddf3d60ae7f776
4
- data.tar.gz: d80fe7b3b712eff665815bb6e8bf7783b2143d33
3
+ metadata.gz: 193cd69f56ffdd252aaf2737ff554fed0b3ae767
4
+ data.tar.gz: e103d7eee610617d6b33bbeac712f1ff8ce2f678
5
5
  SHA512:
6
- metadata.gz: c15985b65931ab5a1653f4439f4c9af78407d3cb007c5fb53f601c29dc9d68ee711794d3db19ed6df06e7cc6d562aaa9cb654b773ae0c2cfaffc2f2d3b92a33b
7
- data.tar.gz: c9c2f33e1d0d7f0f69ae2a30717c343d21bfaeef64203f4c58e7561db59a3fb15a40bb057c81b00dd95b5463242c9c14b08fac4ab41d5004aed62543ad60cc54
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:
@@ -1,2 +1,3 @@
1
+ require 'rspec/expectations'
1
2
  require 'support_methods'
2
3
  require 'have_structure_matcher'
@@ -55,7 +55,3 @@ module HaveStructureMatcher
55
55
  end
56
56
  end
57
57
  end
58
-
59
- RSpec.configure do |config|
60
- config.include HaveStructureMatcher::Methods
61
- end
@@ -1,3 +1,3 @@
1
1
  module RspecStructureMatcher
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
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.6
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: 2016-06-23 00:00:00.000000000 Z
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.6.4
111
+ rubygems_version: 2.5.1
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: Rspec matchers for structured JSON responses.