diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-05-24 20:31:19 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-03 09:29:55 +0900 |
commit | 38df9e18da1bbb4c74b572c51db64745e6bee853 (patch) | |
tree | 7306f4c316be4f822f49130026125ed86f9de4b6 /spec/bundler | |
parent | 214e992556bffa1443e024e63385c5c76ac2f15f (diff) |
[bundler/bundler] Add missing no-color source specs
For consistency.
https://github.com/bundler/bundler/commit/279603ab42
Diffstat (limited to 'spec/bundler')
-rw-r--r-- | spec/bundler/bundler/source_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/bundler/bundler/source_spec.rb b/spec/bundler/bundler/source_spec.rb index a39099a446..00eb05ed88 100644 --- a/spec/bundler/bundler/source_spec.rb +++ b/spec/bundler/bundler/source_spec.rb @@ -84,6 +84,14 @@ RSpec.describe Bundler::Source do expect(subject.version_message(spec)).to eq("nokogiri 1.6.1\e[33m (was 1.7.0)\e[0m") end end + + context "without color" do + before { Bundler.ui = Bundler::UI::Shell.new("no-color" => true) } + + it "should return a string with the locked spec version in yellow" do + expect(subject.version_message(spec)).to eq("nokogiri 1.6.1 (was 1.7.0)") + end + end end context "with an older version" do @@ -97,6 +105,14 @@ RSpec.describe Bundler::Source do expect(subject.version_message(spec)).to eq("nokogiri 1.7.1\e[32m (was 1.7.0)\e[0m") end end + + context "without color" do + before { Bundler.ui = Bundler::UI::Shell.new("no-color" => true) } + + it "should return a string with the locked spec version in yellow" do + expect(subject.version_message(spec)).to eq("nokogiri 1.7.1 (was 1.7.0)") + end + end end end |