diff options
author | Dennis Suratna <dennis.suratna@gmail.com> | 2017-04-10 16:05:10 +0700 |
---|---|---|
committer | Dennis Suratna <dennis.suratna@gmail.com> | 2017-04-10 16:05:10 +0700 |
commit | e4f7cc7b85545db196973f97ff1199052dd81718 (patch) | |
tree | 892f9011c46aeed028682223c33c7aeedd073371 | |
parent | 05ab832d5d7b8664fc67757493d95b120505368d (diff) | |
download | bundler-e4f7cc7b85545db196973f97ff1199052dd81718.tar.gz |
Test error message when source is specified
-rw-r--r-- | spec/commands/add_spec.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/commands/add_spec.rb b/spec/commands/add_spec.rb index ec9ebd16fd..4931402c33 100644 --- a/spec/commands/add_spec.rb +++ b/spec/commands/add_spec.rb @@ -94,6 +94,9 @@ RSpec.describe "bundle add" do it "shows error message when gem cannot be found" do bundle "add 'werk_it'" expect(out).to match("Could not find gem 'werk_it' in any of the gem sources listed in your Gemfile.") + + bundle "add 'werk_it' -s='file://#{gem_repo2}'" + expect(out).to match("Could not find gem 'werk_it' in rubygems repository") end it "shows error message when source cannot be reached" do |