diff --git a/spec/awesome_print_spec.rb b/spec/awesome_print_spec.rb index 30ad903..6b54503 100644 --- a/spec/awesome_print_spec.rb +++ b/spec/awesome_print_spec.rb @@ -504,7 +504,7 @@ EOS it "inherited from File should be displayed as File" do class My < File; end - my = File.new('nul') + my = File.new('/dev/null') rescue File.new('nul') my.ai(:plain => true).should == "#{my.inspect}\n" << `ls -alF #{my.path}`.chop end diff --git a/spec/logger_spec.rb b/spec/logger_spec.rb index c1f5159..79b8341 100644 --- a/spec/logger_spec.rb +++ b/spec/logger_spec.rb @@ -6,7 +6,7 @@ require 'ap/core_ext/logger' describe "AwesomePrint logging extensions" do before(:all) do - @logger = Logger.new('nul') + @logger = Logger.new('/dev/null') #rescue Logger.new('nul') end describe "ap method" do