Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

Commit

Permalink
Fix test to test for invalid dates
Browse files Browse the repository at this point in the history
  • Loading branch information
aw committed Apr 20, 2015
1 parent aca1a6e commit fe40153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_formatting.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def test_httpdate_helper
timestamp1 = CacheRules.httpdate_helper httpdate
timestamp2 = CacheRules.httpdate_helper rfc850
timestamp3 = CacheRules.httpdate_helper ansi_c
timestamp4 = CacheRules.httpdate_helper 'invalid!(@*&^#%$'
timestamp4 = CacheRules.httpdate_helper "2012-13-08T15:43:59" # invalid date

assert_equal timestamp1, result
assert_equal timestamp2, result
Expand Down

0 comments on commit fe40153

Please sign in to comment.