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:
Matt Wildig 2012-05-29 21:10:41 +01:00
parent ad4cfaf2cf
commit f91c411603
1 changed files with 2 additions and 2 deletions

View File

@ -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