Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
agrim123 committed Mar 9, 2018
1 parent 851e9b3 commit 06c9136
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions spec/bundler/cli_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,21 @@
end

context "behaviour with ENV['BUNDLE_GEMFILE']" do
# TODO: set config variable `gemfile` to Gemfile.dev
# reason for failing test
before do
gemfile bundled_app("Gemfile.dev"), <<-G
source "file://#{gem_repo1}"
gem 'rack'
G

bundle! "config --local gemfile #{bundled_app("Gemfile.dev")}"
end

context "when not specified" do
it "uses the value specified in config file" do
gemfile bundled_app("Gemfile.dev"), <<-G
source "file://#{gem_repo1}"
gem 'rack'
G

bundle :install
bundle :list

expect(the_bundle).to include_gems "rack 1.0.0"
expect(out).to include "rack (1.0.0)"
end
end

Expand Down

0 comments on commit 06c9136

Please sign in to comment.