lib/rspec/side_effects.rb in rspec-side_effects-0.1.0 vs lib/rspec/side_effects.rb in rspec-side_effects-0.2.0

- old
+ new

@@ -14,10 +14,14 @@ options.push(called: its_caller) end describe('side effects', *options) do if block - before { subject } + before do + # rubocop:disable Lint/HandleExceptions, Lint/RescueException + begin; subject; rescue Exception; end + # rubocop:enable Lint/HandleExceptions, Lint/RescueException + end example(nil, :aggregate_failures, *options, &block) else example(nil, {}) { subject } end end