diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-01-03 19:16:47 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-01-05 17:35:56 +0100 |
commit | 3154968f29cf9c2c31cdf94cf4fc90d89c5215da (patch) | |
tree | a03aeb829afaf612a28d005df53c56c33ce082b2 | |
parent | 6b6385fc525057da90a5dbf5de5363ef97e81860 (diff) | |
download | bundler-3154968f29cf9c2c31cdf94cf4fc90d89c5215da.tar.gz |
Prefer `warn` to `$stderr.puts`
-rw-r--r-- | spec/runtime/require_spec.rb | 6 | ||||
-rw-r--r-- | spec/support/helpers.rb | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/spec/runtime/require_spec.rb b/spec/runtime/require_spec.rb index a8d7826123..53b7883956 100644 --- a/spec/runtime/require_spec.rb +++ b/spec/runtime/require_spec.rb @@ -155,7 +155,7 @@ RSpec.describe "Bundler.require" do begin Bundler.require rescue LoadError => e - $stderr.puts "ZOMG LOAD ERROR: \#{e.message}" + warn "ZOMG LOAD ERROR: \#{e.message}" end RUBY run(cmd) @@ -228,7 +228,7 @@ RSpec.describe "Bundler.require" do begin Bundler.require rescue LoadError => e - $stderr.puts "ZOMG LOAD ERROR" if e.message.include?("Could not open library 'libfuuu-1.0'") + warn "ZOMG LOAD ERROR" if e.message.include?("Could not open library 'libfuuu-1.0'") end RUBY run(cmd) @@ -251,7 +251,7 @@ RSpec.describe "Bundler.require" do begin Bundler.require rescue LoadError => e - $stderr.puts "ZOMG LOAD ERROR: \#{e.message}" + warn "ZOMG LOAD ERROR: \#{e.message}" end RUBY run(cmd) diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb index 6a6ec5bfa2..e14956f2e9 100644 --- a/spec/support/helpers.rb +++ b/spec/support/helpers.rb @@ -72,7 +72,7 @@ module Spec begin #{ruby} rescue LoadError => e - $stderr.puts "ZOMG LOAD ERROR" if e.message.include?("-- #{name}") + warn "ZOMG LOAD ERROR" if e.message.include?("-- #{name}") end RUBY opts = args.last.is_a?(Hash) ? args.pop : {} @@ -167,7 +167,7 @@ module Spec begin #{ruby} rescue LoadError => e - $stderr.puts "ZOMG LOAD ERROR" if e.message.include?("-- #{name}") + warn "ZOMG LOAD ERROR" if e.message.include?("-- #{name}") end R end |