summaryrefslogtreecommitdiff
path: root/spec/bundler/env_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/bundler/env_spec.rb')
-rw-r--r--spec/bundler/env_spec.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/bundler/env_spec.rb b/spec/bundler/env_spec.rb
index 04de806235..10762b3cd2 100644
--- a/spec/bundler/env_spec.rb
+++ b/spec/bundler/env_spec.rb
@@ -139,9 +139,13 @@ RSpec.describe Bundler::Env do
expect(described_class.report).to include("Git 1.2.3 (Apple Git-BS)")
end
end
+ end
+
+ describe ".version_of" do
+ let(:parsed_version) { described_class.send(:version_of, "ruby") }
- it "properly parses version of tools when shelling out to them" do
- expect(described_class.send(:version_of, "ruby")).to_not include("\n")
+ it "strips version of new line characters" do
+ expect(parsed_version).to_not include("\n")
end
end
end