summaryrefslogtreecommitdiff
path: root/spec/ruby/core/file/null_spec.rb
blob: 355b72b799c9c5b79b990f27d78a22768d40a3a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require_relative '../../spec_helper'

describe "File::NULL" 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