Permalink
Browse files

Add spec for File::NULL

  • Loading branch information...
1 parent ddef315 commit f9419ac7c42fb896c83c890853d7b799519aec78 @jstorimer committed Nov 9, 2012
Showing with 18 additions and 0 deletions.
  1. +18 −0 core/file/null_spec.rb
View
@@ -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.