lib/rspec/apib.rb in rspec-apib-0.2.1 vs lib/rspec/apib.rb in rspec-apib-0.3.0

- old
+ new

@@ -23,12 +23,12 @@ def start types = config.record_types RSpec.configure do |config| config.after :each do |example| - if types.include?(example.metadata[:type]) - RSpec::Apib.record(example, request, response, @routes) - end + return if example.metadata[:apib] === false + return unless types.include?(example.metadata[:type]) + RSpec::Apib.record(example, request, response, @routes) end config.after :all do |example| RSpec::Apib.write end