diff options
-rw-r--r-- | spec/spec_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 0074cb81d8..ee234bfdeb 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -101,13 +101,13 @@ RSpec.configure do |config| config.around :each do |example| ENV.replace(original_env) - reset! system_gems [] - @command_executions = [] Bundler.ui.silence { example.run } + reset! + all_output = @command_executions.map(&:to_s_verbose).join("\n\n") if example.exception && !all_output.empty? warn all_output unless config.formatters.grep(RSpec::Core::Formatters::DocumentationFormatter).empty? |