1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[bundler/bundler] Add missing no-color source specs

For consistency.

https://github.com/bundler/bundler/commit/279603ab42
This commit is contained in:
David Rodríguez 2019-05-24 20:31:19 +02:00 committed by Hiroshi SHIBATA
parent 214e992556
commit 38df9e18da
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -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