Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
cleanup and fix breaking specs on sources spec
Browse files Browse the repository at this point in the history
  • Loading branch information
colby-swandale committed Feb 23, 2019
1 parent f25397b commit 577b522
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/bundler/ui/shell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class Shell
def initialize(options = {})
if options["no-color"] || !$stdout.tty?
Thor::Base.shell = Thor::Shell::Basic
else
Thor::Base.shell = Thor::Shell::Color
end
@shell = Thor::Base.shell.new
@level = ENV["DEBUG"] ? "debug" : "info"
Expand Down
1 change: 0 additions & 1 deletion spec/bundler/source_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ class ExampleSource < Bundler::Source
let(:locked_gem) { double(:locked_gem, :name => "nokogiri", :version => "< 1.5") }

context "with color" do
before { $stdout = STDOUT }
before { Bundler.ui = Bundler::UI::Shell.new }

it "should return a string with the spec name and version and locked spec version" do
Expand Down

0 comments on commit 577b522

Please sign in to comment.