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

Commit

Permalink
test tty
Browse files Browse the repository at this point in the history
  • Loading branch information
colby-swandale committed Feb 21, 2019
1 parent d78a4ec commit 32ab05d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/bundler/source_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ class ExampleSource < Bundler::Source
context "with color" do
before { Bundler.ui = Bundler::UI::Shell.new }

puts "#" * 30
puts "shell: #{Thor::Base.shell.new.inspect}"
puts "stdout: #{$stdout.tty?}"
puts "#" * 30

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\e[32m (was < 1.5)\e[0m")
end
Expand Down

0 comments on commit 32ab05d

Please sign in to comment.