From ad4cfaf2cf74a1d7c19a68be74b9758476f614b7 Mon Sep 17 00:00:00 2001 From: Matt Wildig Date: Tue, 29 May 2012 20:56:26 +0100 Subject: [PATCH] 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 --- test/filter_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/filter_test.rb b/test/filter_test.rb index 9f195079..dfc58547 100644 --- a/test/filter_test.rb +++ b/test/filter_test.rb @@ -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 }