Permalink
Browse files

added tests

  • Loading branch information...
1 parent d10004b commit d433f786c8a9c28de82ae416bab66261666b1c68 @rolfb rolfb committed with Jun 2, 2008
Showing with 3 additions and 0 deletions.
  1. +3 −0 test/basic_test.rb
View
3 test/basic_test.rb
@@ -43,6 +43,9 @@ def test_should_sanitize_filenames
@attachment.filename = 'f o!O-.bar'
assert_equal 'f_o_O-.bar', @attachment.filename
+ @attachment.filename = 'sheeps_says_bææ'
+ assert_equal 'sheeps_says_b__', @attachment.filename
+
@attachment.filename = nil
assert_nil @attachment.filename
end

0 comments on commit d433f78

Please sign in to comment.