diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-05-24 20:30:43 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-03 09:29:55 +0900 |
commit | 214e992556bffa1443e024e63385c5c76ac2f15f (patch) | |
tree | b355955bd7085e60290fe1aab03b51bb7bef1615 /spec | |
parent | 580e165873c727b9248e1ba7d3ac0af9b121a235 (diff) |
[bundler/bundler] Be explicit about coloring in specs that need that
https://github.com/bundler/bundler/commit/a4d04506ab
Diffstat (limited to 'spec')
-rw-r--r-- | spec/bundler/bundler/source_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/bundler/bundler/source_spec.rb b/spec/bundler/bundler/source_spec.rb index 9ef8e7e50f..a39099a446 100644 --- a/spec/bundler/bundler/source_spec.rb +++ b/spec/bundler/bundler/source_spec.rb @@ -65,6 +65,8 @@ RSpec.describe Bundler::Source do end context "without color" do + before { Bundler.ui = Bundler::UI::Shell.new("no-color" => true) } + it "should return a string with the spec name and version and locked spec version" do expect(subject.version_message(spec)).to eq("nokogiri >= 1.6 (was < 1.5)") end |