diff options
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 |