summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-05-09 23:10:32 +0100
committerAndre Arko <andre@arko.net>2015-05-09 23:10:32 +0100
commitc6c74e59da641704149eb94608b63487e17d57bc (patch)
tree4660056db6a916237a4ec57eb4b072fb7cb5e7bb
parentd09d4e03e8a57e75a25fe2be4d048b9b23a87463 (diff)
downloadbundler-c6c74e59da641704149eb94608b63487e17d57bc.tar.gz
don’t hit rubygems.org in a test o_O
-rw-r--r--spec/install/post_bundle_message_spec.rb17
1 files changed, 6 insertions, 11 deletions
diff --git a/spec/install/post_bundle_message_spec.rb b/spec/install/post_bundle_message_spec.rb
index 5bdf165062..64b73d87c4 100644
--- a/spec/install/post_bundle_message_spec.rb
+++ b/spec/install/post_bundle_message_spec.rb
@@ -83,18 +83,13 @@ describe "post bundle message" do
end
describe "with misspelled or non-existent gem name" do
- before :each do
- gemfile <<-G
- source 'https://rubygems.org/'
- gem "rails"
- gem "misspelled-gem-name", :group => :development
+ it "should report a helpful error message" do
+ install_gemfile <<-G
+ source "file://#{gem_repo1}"
+ gem "rack"
+ gem "not-a-gem", :group => :development
G
- end
-
- it "should report a helpufl error message" do
- bundle :install
- expect(out).to include("Fetching gem metadata from https://rubygems.org/")
- expect(out).to include("Could not find gem 'misspelled-gem-name (>= 0) ruby' in any of the gem sources listed in your Gemfile or available on this machine.")
+ expect(err).to include("Could not find gem 'not-a-gem (>= 0) ruby' in any of the gem sources listed in your Gemfile or available on this machine.")
end
end
end