diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-08-01 20:35:31 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-08-03 09:24:00 -0500 |
commit | 29fb4282ea198b2c62d2a580d8ab1ba1fb54de3b (patch) | |
tree | bdaaf5c6584afcfbb5416973d755c35d88f967d6 /spec/spec_helper.rb | |
parent | dafad010679f89aa1b66ee1770f9f4ac4c72e386 (diff) | |
download | bundler-29fb4282ea198b2c62d2a580d8ab1ba1fb54de3b.tar.gz |
Remove expect_err from the specs & print all output on a spec failure
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 68146168e7..c9158e693e 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -34,8 +34,7 @@ Dir["#{File.expand_path("../support", __FILE__)}/*.rb"].each do |file| require file unless file =~ %r{fakeweb/.*\.rb} end -$debug = false -$show_err = true +$debug = false Spec::Rubygems.setup FileUtils.rm_rf(Spec::Path.gem_repo1) @@ -98,10 +97,12 @@ RSpec.configure do |config| reset! system_gems [] in_app_root + @all_output = String.new end config.after :each do |example| - puts @out if defined?(@out) && example.exception + @all_output.strip! + warn @all_output if example.exception && !@all_output.empty? Dir.chdir(original_wd) ENV.replace(original_env) |