diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2017-06-22 12:58:13 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2017-06-22 12:58:13 -0500 |
commit | 2f7fe6af5b0e45c00717810008f6c91eeb241775 (patch) | |
tree | 9ff8fc9f539bd108ae207f446f9722c7b5bfb7fc /spec | |
parent | 67ff76af19e6d033d26e63ff2f064754316fee38 (diff) | |
download | bundler-2f7fe6af5b0e45c00717810008f6c91eeb241775.tar.gz |
[Settings] Print pretty values for settings as their converted values, rather than stringsseg-config-converted-value
Diffstat (limited to 'spec')
-rw-r--r-- | spec/bundler/settings_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/bundler/settings_spec.rb b/spec/bundler/settings_spec.rb index 1c66cd73af..1acd2a97b3 100644 --- a/spec/bundler/settings_spec.rb +++ b/spec/bundler/settings_spec.rb @@ -150,6 +150,16 @@ that would suck --ehhh=oh geez it looks like i might have broken bundler somehow end end + describe "#pretty_values_for" do + it "prints the converted value rather than the raw string" do + bool_key = described_class::BOOL_KEYS.first + settings[bool_key] = false + expect(subject.pretty_values_for(bool_key)).to eq [ + "Set for your local app (#{bundled_app("config")}): false", + ] + end + end + describe "#mirror_for" do let(:uri) { URI("https://rubygems.org/") } |