trying to stop test errors on windows platform

This commit is contained in:
John Mair 2011-06-17 02:49:09 +12:00
parent 3dd173851a
commit 4a1c6c291f
1 changed files with 6 additions and 4 deletions

View File

@ -7,10 +7,12 @@ puts "--"
describe Pry do
describe 'warning emissions' do
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
if RUBY_PLATFORM !~ /mingw/ && RUBY_PLATFORM !~ /mswin/
describe 'warning emissions' do
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
end
end
end
end