Permalink
Browse files

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
  • Loading branch information...
1 parent 1950d20 commit ad4cfaf2cf74a1d7c19a68be74b9758476f614b7 @mattwildig mattwildig committed May 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/filter_test.rb
View
@@ -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 }

0 comments on commit ad4cfaf

Please sign in to comment.