test/coverband/integrations/middleware_test.rb in coverband-4.2.0.rc1 vs test/coverband/integrations/middleware_test.rb in coverband-4.2.0.rc2

- old
+ new

@@ -60,9 +60,10 @@ test 'always be enabled with sample percentage of 100' do request = Rack::MockRequest.env_for('/anything.json') Coverband::Collectors::Coverage.instance.reset_instance collector = Coverband::Collectors::Coverage.instance + collector.report_coverage(true) collector.instance_variable_set('@reporting_frequency', 100.0) middleware = Coverband::Middleware.new(fake_app) store = Coverband::Collectors::Coverage.instance.instance_variable_get('@store') store.expects(:save_report).once middleware.call(request)