Skip to content

Commit

Permalink
Add spec for File::NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
jstorimer committed Nov 9, 2012
1 parent ddef315 commit f9419ac
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions core/file/null_spec.rb
@@ -0,0 +1,18 @@
require File.expand_path('../../../spec_helper', __FILE__)

describe "File::NULL" do
ruby_version_is "1.9" do
platform_is :windows do
it "returns NUL as a string" do
File::NULL.should == 'NUL'
end
end

platform_is_not :windows do
it "returns /dev/null as a string" do
File::NULL.should == '/dev/null'
end
end
end
end

0 comments on commit f9419ac

Please sign in to comment.