diff options
author | Agrim Mittal <agrimmittal97@gmail.com> | 2018-04-07 22:51:42 +0530 |
---|---|---|
committer | Agrim Mittal <agrimmittal97@gmail.com> | 2018-07-02 11:00:23 +0530 |
commit | 772d04c237540b3cdd4e199fe822f0d47a783895 (patch) | |
tree | e7f8ad43670cd5f6517329699174c91d6610dc40 /spec/commands/install_spec.rb | |
parent | 0c3563fd91dba5281e84c5667488501161f4e87b (diff) | |
download | bundler-772d04c237540b3cdd4e199fe822f0d47a783895.tar.gz |
Fix failing specs
Diffstat (limited to 'spec/commands/install_spec.rb')
-rw-r--r-- | spec/commands/install_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/commands/install_spec.rb b/spec/commands/install_spec.rb index f77864dd0f..394f672fef 100644 --- a/spec/commands/install_spec.rb +++ b/spec/commands/install_spec.rb @@ -345,8 +345,10 @@ RSpec.describe "bundle install with gem sources" do expect(out).to include("Remove any duplicate entries and specify the gem only once (per group).") expect(out).to include("While it's not a problem now, it could cause errors if you change the version of one of them later.") end + end - it "version of one dependency is not specified" do + context "throws an error if a gem is added twice in Gemfile" do + it "when version of one dependency is not specified" do install_gemfile <<-G source "file://#{gem_repo2}" gem "rack" @@ -357,7 +359,7 @@ RSpec.describe "bundle install with gem sources" do expect(out).to include("You specified: rack (>= 0) and rack (= 1.0).") end - it "different versions of both dependencies are specified" do + it "when different versions of both dependencies are specified" do install_gemfile <<-G source "file://#{gem_repo2}" gem "rack", "1.0" |