Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Pull up a method we only use once.

  • Loading branch information...
commit ac1a363c6ed889d11e8fabd6dd69a8a6df9e3cfd 1 parent 41a085e
@tenderlove tenderlove authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 actionpack/test/controller/resources_test.rb
View
6 actionpack/test/controller/resources_test.rb
@@ -532,7 +532,7 @@ def test_restful_routes_dont_generate_duplicates
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 @@ def assert_not_recognizes(expected_options, path)
assert_recognizes(expected_options, path)
end
end
-
- def distinct_routes? (r1, r2)
- assert_not_equal r1.conditions, r2.conditions
- end
end
Please sign in to comment.
Something went wrong with that request. Please try again.