1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

Resolve test name conflict

There are two tests named
"is possible to apply user_agent conditions to before filters with a path"
in filters_test.rb, causing "method redefined" warnings and tests not
being run.

Rename second of these to accurately describe what it's testing
This commit is contained in:
Matt Wildig 2012-05-29 20:56:26 +01:00
parent 1950d202c6
commit ad4cfaf2cf

View file

@ -410,7 +410,7 @@ class AfterFilterTest < Test::Unit::TestCase
assert ran
end
it 'is possible to apply user_agent conditions to before filters with a path' do
it 'is possible to apply user_agent conditions to after filters with a path' do
ran = false
mock_app do
after('/foo', :user_agent => /foo/) { ran = true }