diff options
Diffstat (limited to 'spec/runtime/inline_spec.rb')
-rw-r--r-- | spec/runtime/inline_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/runtime/inline_spec.rb b/spec/runtime/inline_spec.rb index 2893920e44..dcaba3ab9d 100644 --- a/spec/runtime/inline_spec.rb +++ b/spec/runtime/inline_spec.rb @@ -252,4 +252,19 @@ RSpec.describe "bundler/inline#gemfile" do expect(err).to be_empty expect(exitstatus).to be_zero if exitstatus end + + it "installs inline gems when BUNDLE_BIN is set" do + ENV["BUNDLE_BIN"] = "/usr/local/bundle/bin" + + script <<-RUBY + gemfile do + source "file://#{gem_repo1}" + gem "rack" # has the rackup executable + end + + puts RACK + RUBY + expect(last_command).to be_success + expect(last_command.stdout).to eq "1.0.0" + end end |