diff options
author | Nikita Esaulov <billikota@gmail.com> | 2018-03-15 20:13:53 +0300 |
---|---|---|
committer | Nikita Esaulov <billikota@gmail.com> | 2018-03-15 20:13:53 +0300 |
commit | e24e8be8c749b16ffe8ac9548651e50024429954 (patch) | |
tree | 9ed039d029b5c08c3ca5ad88c92f1fe3c0945f05 | |
parent | 307fc6b37f67f1ef5980390490335a17957890d7 (diff) | |
download | bundler-e24e8be8c749b16ffe8ac9548651e50024429954.tar.gz |
Another attempt
-rw-r--r-- | spec/commands/exec_spec.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/spec/commands/exec_spec.rb b/spec/commands/exec_spec.rb index 22c088de00..30972b5e46 100644 --- a/spec/commands/exec_spec.rb +++ b/spec/commands/exec_spec.rb @@ -624,9 +624,13 @@ RSpec.describe "bundle exec" do context "the executable raises an error without a backtrace", :bundler => "2" do let(:executable) { super() << "\nclass Err < Exception\ndef backtrace; end;\nend\nraise Err" } let(:exit_code) { 1 } - let(:expected) { super() << "\nbundler: failed to load command: #{path} (#{path})" } - let(:expected_err) do - "bundler: failed to load command: #{path} (#{path})\nErr: Err" + let(:expected_err) { "bundler: failed to load command: #{path} (#{path})\nErr: Err" } + let(:expected) do + if ENV["BUNDLER_SPEC_SUB_VERSION"] == "1.98" + super() << "\nbundler: failed to load command: #{path} (#{path})" + else + super() + end end it_behaves_like "it runs" |