Skip to content

Commit

Permalink
added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfb authored and technoweenie committed Jun 2, 2008
1 parent d10004b commit d433f78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/basic_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d433f78

Please sign in to comment.