summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2018-08-30 17:20:44 -0300
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2018-08-30 17:22:36 -0300
commita4c3c52433cc236deff997eee098ffd5b7f569af (patch)
treefa509517eaac2137e39c059b5c867175a22e42ad /spec
parent4e215b74197581de3b11cf3e2948d604da7ca2d6 (diff)
downloadbundler-a4c3c52433cc236deff997eee098ffd5b7f569af.tar.gz
Remove extra new lines from `bundle env` output
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/env_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/bundler/env_spec.rb b/spec/bundler/env_spec.rb
index 83c03e67d5..04de806235 100644
--- a/spec/bundler/env_spec.rb
+++ b/spec/bundler/env_spec.rb
@@ -139,5 +139,9 @@ RSpec.describe Bundler::Env do
expect(described_class.report).to include("Git 1.2.3 (Apple Git-BS)")
end
end
+
+ it "properly parses version of tools when shelling out to them" do
+ expect(described_class.send(:version_of, "ruby")).to_not include("\n")
+ end
end
end