diff --git a/test/test_pry.rb b/test/test_pry.rb index 600149dc..831dfeb3 100644 --- a/test/test_pry.rb +++ b/test/test_pry.rb @@ -4,10 +4,10 @@ describe Pry do if RUBY_PLATFORM !~ /mingw/ && RUBY_PLATFORM !~ /mswin/ && RUBY_PLATFORM != 'java' describe 'warning emissions' do + system('ruby -I lib -rubygems -r"pry" -W -e "exit"') it 'should emit no warnings' do Open4.popen4 'ruby -I lib -rubygems -r"pry" -W -e "exit"' do |pid, stdin, stdout, stderr| stderr.read.empty?.should == true - puts stderr.read end end end