Sha256: bea656abf031f90dff53cd0deb3b3a7cbf5cb33711e6ff0b4e8f209a2f1733c2
Contents?: true
Size: 691 Bytes
Versions: 2
Compression:
Stored size: 691 Bytes
Contents
require File.expand_path('../fixtures/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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubysl-digest-1.2.0 | spec/shared/read.rb |
rubysl-digest-1.1.0 | spec/shared/read.rb |