diff options
author | ankitkataria <ankitkataria28@gmail.com> | 2018-08-28 01:24:47 +0530 |
---|---|---|
committer | ankitkataria <ankitkataria28@gmail.com> | 2018-08-28 01:24:47 +0530 |
commit | 62a4e052845dabf167a3920d6d1b0f62426c44fb (patch) | |
tree | a9184f8f90488e7d73e8f954172b06ba46b3202b /spec | |
parent | 663901f9796003e7742d7508cccbe8287bc86906 (diff) | |
download | bundler-62a4e052845dabf167a3920d6d1b0f62426c44fb.tar.gz |
Fixes test for --gemfile flag
Diffstat (limited to 'spec')
-rw-r--r-- | spec/commands/exec_spec.rb | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/spec/commands/exec_spec.rb b/spec/commands/exec_spec.rb index 9f0a439fc5..35b6b53d13 100644 --- a/spec/commands/exec_spec.rb +++ b/spec/commands/exec_spec.rb @@ -6,14 +6,20 @@ RSpec.describe "bundle exec" do system_gems(system_gems_to_install, :path => :bundle_path) end - it "works with --gemfile flag", :focus do + it "works with --gemfile flag" do create_file "CustomGemfile", <<-G - gem "rack" + gem "rack", "1.0.0" + G + + create_file "CustomGemfile2", <<-G + gem "rack", "0.9.1" G - bundle "exec --gemfile CustomGemfile test" + bundle "exec --gemfile CustomGemfile rackup" + expect(out).to eq("1.0.0") - expect(ENV["BUNDLE_GEMFILE"]).to eq("CustomGemfile") + bundle "exec --gemfile CustomGemfile2 rackup" + expect(out).to eq("0.9.1") end it "activates the correct gem" do |