summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Esaulov <billikota@gmail.com>2018-03-15 01:34:36 +0300
committerNikita Esaulov <billikota@gmail.com>2018-03-15 01:34:36 +0300
commitd2b7da148e0461115103b9a1bd0b8d748689d6ff (patch)
tree61844d5144753cdef2324db30ca2b9f3e84e3a6f
parentcb41bc398a0d7e1c0e7d3eaa3611475d2f6f6bcd (diff)
downloadbundler-d2b7da148e0461115103b9a1bd0b8d748689d6ff.tar.gz
Update `expected_err` for ruby < 1.9
-rw-r--r--spec/commands/exec_spec.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/commands/exec_spec.rb b/spec/commands/exec_spec.rb
index 05d01ff01d..0f63d19213 100644
--- a/spec/commands/exec_spec.rb
+++ b/spec/commands/exec_spec.rb
@@ -610,7 +610,11 @@ RSpec.describe "bundle exec" do
let(:executable) { super() << "\nclass Err < Exception\ndef backtrace; end;\nend\nraise Err" }
let(:exit_code) { 1 }
let(:expected_err) do
- "bundler: failed to load command: #{path} (#{path})\nErr: Err"
+ if LessThanProc.with(RUBY_VERSION).call("1.9")
+ "Err: Err"
+ else
+ "bundler: failed to load command: #{path} (#{path})\nErr: Err"
+ end
end
it_behaves_like "it runs"