Skip to content

Commit fa17edb

Browse files
authored
Fix system_test_example teardown
Original `after_teardown` must be called after the original `before_teardown` (which is added to `after` hooks by RSpec::Rails::MinitestLifecycleAdapter). Fixes taking failures screenshot functionality (changed in rails/rails@ef12ccf).
1 parent 207d613 commit fa17edb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rspec/rails/example/system_example_group.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def driven_by(*args, &blk)
8989
@routes = ::Rails.application.routes
9090
end
9191

92-
after do
92+
append_after do
9393
orig_stdout = $stdout
9494
$stdout = StringIO.new
9595
begin

0 commit comments

Comments
 (0)