test/tc/copydir.rb in rio-0.3.4 vs test/tc/copydir.rb in rio-0.3.6
- old
+ new
@@ -159,10 +159,11 @@
assert(dst.file?)
assert_equal(src,dst.readlines)
end
def test_tofile
dst = rio('dst').delete!.touch
- assert_raise(Errno::ENOTDIR) {
+ exp = ($mswin32 ? Errno::ENOENT : Errno::ENOTDIR)
+ assert_raise(exp) {
@d0 > dst
}
end
end