summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Esaulov <billikota@gmail.com>2018-03-15 16:57:21 +0300
committerNikita Esaulov <billikota@gmail.com>2018-03-15 16:57:21 +0300
commit307fc6b37f67f1ef5980390490335a17957890d7 (patch)
tree9a819a7fdf83b962b95cae92b9efbc0dc9c9539b
parent57f35414c8782b52de2f2ae21308ef2655c7b19d (diff)
downloadbundler-307fc6b37f67f1ef5980390490335a17957890d7.tar.gz
Another attempt
-rw-r--r--spec/commands/exec_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/commands/exec_spec.rb b/spec/commands/exec_spec.rb
index 8c194591ec..22c088de00 100644
--- a/spec/commands/exec_spec.rb
+++ b/spec/commands/exec_spec.rb
@@ -609,6 +609,7 @@ 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
if ENV["BUNDLER_SPEC_SUB_VERSION"] == "1.98"
"Err: Err"
@@ -623,6 +624,7 @@ 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"
end