Resolve test name conflict
sanitize_name in contest.rb strips out any non-word characters, so 'is false for status > 404' and 'is false for status < 404' end up as having the same test name, causing lost tests. Rename these tests to use 'gt' and 'lt' rather then '>' and '<'.
This commit is contained in:
parent
ad4cfaf2cf
commit
f91c411603
|
@ -31,12 +31,12 @@ class HelpersTest < Test::Unit::TestCase
|
|||
assert_body 'true'
|
||||
end
|
||||
|
||||
it 'is false for status > 404' do
|
||||
it 'is false for status gt 404' do
|
||||
status_app(405) { not_found? }
|
||||
assert_body 'false'
|
||||
end
|
||||
|
||||
it 'is false for status < 404' do
|
||||
it 'is false for status lt 404' do
|
||||
status_app(403) { not_found? }
|
||||
assert_body 'false'
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue