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:
parent
214e992556
commit
38df9e18da
1 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue