Sha256: d4e2311d8361df05ae387162d1a2266008dc170aec8d45c79ab32f5b6e6da9d2
Contents?: true
Size: 701 Bytes
Versions: 3
Compression:
Stored size: 701 Bytes
Contents
require File.expand_path('../../../fixtures/dir/common', __FILE__) describe :file_read_directory, :shared => true do platform_is :darwin, :linux do it "raises an Errno::EISDIR when passed a path that is a directory" do lambda { @object.send(@method, ".") }.should raise_error(Errno::EISDIR) end end platform_is :bsd do it "does not raises any exception when passed a path that is a directory" do lambda { @object.send(@method, ".") }.should_not raise_error end end platform_is :windows do it "raises an Errno::EACCES when passed a path that is a directory" do lambda { @object.send(@method, ".") }.should raise_error(Errno::EACCES) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubysl-digest-2.1 | spec/shared/file/read.rb |
rubysl-digest-2.0.8 | spec/shared/file/read.rb |
rubysl-digest-2.0.7 | spec/shared/file/read.rb |