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 +4 -4
- data/lib/rspec/apib/version.rb +1 -1
- data/lib/rspec/apib.rb +4 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acdaaea75bf851d94f43e05754ae02855d97b160
|
4
|
+
data.tar.gz: 26aabec691e24cf119d6d6ee2bab85feb19692a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 550d0b586e2969c09e3203cdcfdd286e24e5c2b0eb80e2de6fe8b3367aa26d0eeb0c826dc7791f3a3ceb4464f365c7351ca0b88907d366c4a487c7c6b1a16f9b
|
7
|
+
data.tar.gz: 78e1201a5e7bae314902e08d5585548aaf503295f5d4abe2939f626ab208165c9001185411ba3ebff85f11ec202e7c3ac57e2a595243bf05146bcbb24b2019cd
|
data/lib/rspec/apib/version.rb
CHANGED
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
|
-
|
29
|
-
|
30
|
-
|
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|
|