File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -138,10 +138,10 @@ def test_strip_cdata
138
138
end
139
139
140
140
def test_strip_passed_passed_duck_typed_range
141
- input = 2000 ..2005
141
+ input = 2001 ..2005
142
142
result = full_sanitize ( input )
143
143
acceptable_results = [
144
- "2000 ..2005" ,
144
+ "2001 ..2005" ,
145
145
]
146
146
147
147
assert_includes ( acceptable_results , result )
@@ -222,6 +222,7 @@ def test_strip_links_with_unclosed_tags
222
222
end
223
223
224
224
def test_strip_links_with_passed_duck_typed_range
225
+ assert_equal "2001..2005" , link_sanitize ( Range . new ( 2001 , 2005 ) )
225
226
assert_equal "2001..2005" , link_sanitize ( 2001 ..2005 )
226
227
end
227
228
@@ -310,6 +311,7 @@ def test_sanitize_form
310
311
end
311
312
312
313
def test_sanitize_passed_duck_typed_range
314
+ assert_sanitized Range . new ( 2001 , 2005 ) , "2001..2005"
313
315
assert_sanitized 2001 ..2005 , "2001..2005"
314
316
end
315
317
You can’t perform that action at this time.
0 commit comments