summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColby Swandale <me@colby.fyi>2018-04-14 21:59:28 +1000
committerColby Swandale <me@colby.fyi>2018-04-14 21:59:28 +1000
commit6c3f358159af19dac592b661de92303c4f4a6cae (patch)
tree50ccc1b2c9a3934e2658c94409760e20eb8aa9d1
parentba49ed283fa20d313f95cdefcd32f8f82a786c9f (diff)
downloadbundler-colby/fix-exec-spec.tar.gz
fix failing exec spec that is blocking 1.16.2colby/fix-exec-spec
-rw-r--r--spec/commands/exec_spec.rb16
1 files changed, 2 insertions, 14 deletions
diff --git a/spec/commands/exec_spec.rb b/spec/commands/exec_spec.rb
index 30972b5e46..2fe2667363 100644
--- a/spec/commands/exec_spec.rb
+++ b/spec/commands/exec_spec.rb
@@ -610,13 +610,7 @@ RSpec.describe "bundle exec" 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
- if ENV["BUNDLER_SPEC_SUB_VERSION"] == "1.98"
- "Err: Err"
- else
- "bundler: failed to load command: #{path} (#{path})\nErr: Err"
- end
- end
+ let(:expected_err) { "Err: Err" }
it_behaves_like "it runs"
end
@@ -625,13 +619,7 @@ RSpec.describe "bundle exec" do
let(:executable) { super() << "\nclass Err < Exception\ndef backtrace; end;\nend\nraise Err" }
let(:exit_code) { 1 }
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
+ let(:expected) { super() }
it_behaves_like "it runs"
end