mirror of https://github.com/rails/rails
Conditions must never be equal
This commit is contained in:
parent
cbf1dc7842
commit
41a085ebc9
|
@ -1353,11 +1353,6 @@ class ResourcesTest < ActionController::TestCase
|
|||
end
|
||||
|
||||
def distinct_routes? (r1, r2)
|
||||
if r1.conditions == r2.conditions and r1.constraints == r2.constraints then
|
||||
if r1.segments.collect(&:to_s) == r2.segments.collect(&:to_s) then
|
||||
return false
|
||||
end
|
||||
end
|
||||
true
|
||||
assert_not_equal r1.conditions, r2.conditions
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue