summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2018-09-01 23:37:55 -0300
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2018-09-01 23:37:55 -0300
commit2b7762318e9e376022ed2885a1b3b922cab6a62f (patch)
treeaf0ce5732deb75beafc6ada567725f25b3e4c70f
parenta4c3c52433cc236deff997eee098ffd5b7f569af (diff)
downloadbundler-bundle_env_formatting.tar.gz
Improve test to better self explain what it doesbundle_env_formatting
-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