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 /spec/runtime | |
parent | 6b6385fc525057da90a5dbf5de5363ef97e81860 (diff) | |
download | bundler-3154968f29cf9c2c31cdf94cf4fc90d89c5215da.tar.gz |
Prefer `warn` to `$stderr.puts`
Diffstat (limited to 'spec/runtime')
-rw-r--r-- | spec/runtime/require_spec.rb | 6 |
1 files changed, 3 insertions, 3 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) |