rspec-apib 0.3.1 → 0.3.2

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: 9466ebb3ad8495c0f3c23391ba04d705c03f4b7f
4
- data.tar.gz: c06f51567e5a1686ed1280938d01e0b553d8328a
3
+ metadata.gz: acdaaea75bf851d94f43e05754ae02855d97b160
4
+ data.tar.gz: 26aabec691e24cf119d6d6ee2bab85feb19692a0
5
5
  SHA512:
6
- metadata.gz: 78da8b2e69d667208e9a61a8e871866274046ad3ef267603660fe0189c1e78103ea393109c44d2fb2a547b709125d7a5f072442bd2e84d7e633f487fd21a6fc5
7
- data.tar.gz: 3cff3c132121a385f641a8cb81d8642828f4c0fbb8d84a9ee2085ac754a14c88fbda95b00c92030322d33864aa6bc00b9d871d1336972be8e5e7def859560f21
6
+ metadata.gz: 550d0b586e2969c09e3203cdcfdd286e24e5c2b0eb80e2de6fe8b3367aa26d0eeb0c826dc7791f3a3ceb4464f365c7351ca0b88907d366c4a487c7c6b1a16f9b
7
+ data.tar.gz: 78e1201a5e7bae314902e08d5585548aaf503295f5d4abe2939f626ab208165c9001185411ba3ebff85f11ec202e7c3ac57e2a595243bf05146bcbb24b2019cd
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module Apib
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
4
4
  end
5
5
  end
data/lib/rspec/apib.rb CHANGED
@@ -25,9 +25,10 @@ module RSpec
25
25
  types = config.record_types
26
26
  RSpec.configure do |config|
27
27
  config.after :each do |example|
28
- return if example.metadata[:apib] === false
29
- return unless types.include?(example.metadata[:type])
30
- RSpec::Apib.record(example, request, response, @routes)
28
+ if types.include?(example.metadata[:type]) &&
29
+ !(example.metadata[:apib] === false)
30
+ RSpec::Apib.record(example, request, response, @routes)
31
+ end
31
32
  end
32
33
 
33
34
  config.after :all do |example|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-apib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Spieker