Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
remove newline from error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Oberhuber committed Sep 29, 2015
1 parent 04c3ac4 commit ced3616
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/bundler/installer/parallel_installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def dependencies(all_spec_names)
deps = all_dependencies.reject {|dep| ignorable_dependency? dep }
missing = deps.reject {|dep| all_spec_names.include? dep.name }
if missing.size > 0
raise Bundler::GemfileError, "Your Gemfile.lock is corrupt. The following #{missing.size > 1 ? "gems are" : "gem is"} missing\n" \
raise Bundler::GemfileError, "Your Gemfile.lock is corrupt. The following #{missing.size > 1 ? "gems are" : "gem is"} missing " \
"from the DEPENDENCIES section: '#{missing.map(&:name).join('\' \'')}'"
end
deps
Expand Down
2 changes: 1 addition & 1 deletion spec/install/parallel/spec_installation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def a_spec.name
spec = ParallelInstaller::SpecInstallation.new(dep)
allow(spec).to receive(:all_dependencies).and_return(dependencies)
expect { spec.dependencies_installed?(all_specs) }.
to raise_error(Bundler::GemfileError, /Your Gemfile.lock is corrupt\. The following.*\n.*'beta' 'delta'/)
to raise_error(Bundler::GemfileError, /Your Gemfile.lock is corrupt\. The following.*'beta' 'delta'/)
end
end
end
Expand Down

0 comments on commit ced3616

Please sign in to comment.