Pull up a method we only use once.

This commit is contained in:
Aaron Patterson 2011-09-08 16:04:46 -07:00
parent 41a085ebc9
commit ac1a363c6e
1 changed files with 1 additions and 5 deletions

View File

@ -532,7 +532,7 @@ class ResourcesTest < ActionController::TestCase
routes.each do |route|
routes.each do |r|
next if route === r # skip the comparison instance
assert distinct_routes?(route, r), "Duplicate Route: #{route}"
assert_not_equal route.conditions, r.conditions
end
end
end
@ -1351,8 +1351,4 @@ class ResourcesTest < ActionController::TestCase
assert_recognizes(expected_options, path)
end
end
def distinct_routes? (r1, r2)
assert_not_equal r1.conditions, r2.conditions
end
end