Permalink
Browse files

Stub STDOUT.tty? to always be false during tests

  • Loading branch information...
1 parent 3482a1c commit c54bb92840a7b803252a995cf79f021e43c627f2 @nicksieger nicksieger committed Jan 13, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 spec/jruby/lint/project_spec.rb
@@ -83,6 +83,7 @@
context 'initializing' do
Given(:options) { OpenStruct.new }
Given(:project) { in_current_dir { JRuby::Lint::Project.new(options) } }
+ When { STDOUT.stub!(:tty?).and_return(false) }
context 'tags' do
Given(:options) { OpenStruct.new(:tags => ["debug"]) }

0 comments on commit c54bb92

Please sign in to comment.