mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
fixing most tests on Ruby 2.0
This commit is contained in:
parent
b59faa7f40
commit
59f83153ca
2 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,7 @@ module ActionDispatch
|
|||
def reqs
|
||||
@reqs ||= begin
|
||||
reqs = endpoint
|
||||
reqs += " #{constraints.inspect}" unless constraints.empty?
|
||||
reqs += " #{constraints.to_s}" unless constraints.empty?
|
||||
reqs
|
||||
end
|
||||
end
|
||||
|
|
|
@ -24,7 +24,7 @@ module ActionDispatch
|
|||
|
||||
def test_displaying_routes_for_engines
|
||||
engine = Class.new(Rails::Engine) do
|
||||
def self.to_s
|
||||
def self.inspect
|
||||
"Blog::Engine"
|
||||
end
|
||||
end
|
||||
|
@ -132,7 +132,7 @@ module ActionDispatch
|
|||
|
||||
def test_rake_routes_shows_route_with_rack_app_nested_with_dynamic_constraints
|
||||
constraint = Class.new do
|
||||
def to_s
|
||||
def inspect
|
||||
"( my custom constraint )"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue