summaryrefslogtreecommitdiff
path: root/spec/commands/install_spec.rb
diff options
context:
space:
mode:
authorAgrim Mittal <agrimmittal97@gmail.com>2018-04-07 22:51:42 +0530
committerAgrim Mittal <agrimmittal97@gmail.com>2018-07-02 11:00:23 +0530
commit772d04c237540b3cdd4e199fe822f0d47a783895 (patch)
treee7f8ad43670cd5f6517329699174c91d6610dc40 /spec/commands/install_spec.rb
parent0c3563fd91dba5281e84c5667488501161f4e87b (diff)
downloadbundler-772d04c237540b3cdd4e199fe822f0d47a783895.tar.gz
Fix failing specs
Diffstat (limited to 'spec/commands/install_spec.rb')
-rw-r--r--spec/commands/install_spec.rb6
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"