diff options
author | Colby Swandale <colby@taplaboratories.com> | 2016-12-11 22:02:33 +1100 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-12-17 14:33:44 +0100 |
commit | 4026b43c2931c1899a22374e4eb53e90e3274150 (patch) | |
tree | 70ba37f70710c47d307885160a4073aa04747529 /spec | |
parent | 869bf08d37e9d796c895f478073a6127445af98f (diff) | |
download | bundler-4026b43c2931c1899a22374e4eb53e90e3274150.tar.gz |
add failing spec for error not being printed on a new line
Diffstat (limited to 'spec')
-rw-r--r-- | spec/realworld/mirror_probe_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/realworld/mirror_probe_spec.rb b/spec/realworld/mirror_probe_spec.rb index 0fb93b8ab1..d280eeff94 100644 --- a/spec/realworld/mirror_probe_spec.rb +++ b/spec/realworld/mirror_probe_spec.rb @@ -79,6 +79,24 @@ describe "fetching dependencies with a not available mirror", :realworld => true expect(out).to include("Retrying fetcher due to error (4/4): Bundler::HTTPError Could not fetch specs from #{mirror}") expect(out).to include("Could not fetch specs from #{mirror}") end + + it "prints each error and warning on a new line" do + + gemfile <<-G + source "#{original}" + gem 'weakling' + G + + bundle :install + + expect(out).to eq "Fetching source index from #{mirror}/ + +Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from #{mirror}/ +Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from #{mirror}/ +Retrying fetcher due to error (4/4): Bundler::HTTPError Could not fetch specs from #{mirror}/ +Could not fetch specs from #{mirror}" + R + end end context "with a global mirror without a fallback timeout" do |