diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-08-11 15:53:26 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-08-11 15:53:26 -0500 |
commit | c5429e95bb9b667d058fb18c561edad4d756e711 (patch) | |
tree | a25d4f48d39e337f9153e54c1ddbcfb53ab2381a /spec/spec_helper.rb | |
parent | 767ac0e565008782c3d0e79cfc79e95d35e0400f (diff) | |
download | bundler-c5429e95bb9b667d058fb18c561edad4d756e711.tar.gz |
Dont print all_ouput inline unless the doc formatter is in use
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 074645ec..a3251ea6 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -103,7 +103,7 @@ RSpec.configure do |config| config.after :each do |example| @all_output.strip! if example.exception && !@all_output.empty? - warn @all_output + warn @all_output unless config.formatters.grep(RSpec::Core::Formatters::DocumentationFormatter).empty? message = example.exception.message + "\n\nCommands:\n#{@all_output}" (class << example.exception; self; end).send(:define_method, :message) do message |