Skip to content

Commit

Permalink
better safe
Browse files Browse the repository at this point in the history
  • Loading branch information
seamusabshere committed Apr 12, 2012
1 parent 89ed8e6 commit 6c34bf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_unix_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@
File.extname(UnixUtils.tmp_path("dirname1/dirname2/basename.extname", '.foobar')).must_equal '.foobar'
end
it "doesn't create excessively long filenames" do
File.basename(UnixUtils.tmp_path("a"*5000)).length.must_equal 255
File.basename(UnixUtils.tmp_path("a"*5000)).length.must_equal 254
end
it "doesn't include directory part of ancestor" do
UnixUtils.tmp_path("dirname1/dirname2/basename.extname").wont_include 'dirname1'
Expand Down

0 comments on commit 6c34bf4

Please sign in to comment.