Permalink
Browse files

fixing most tests on Ruby 2.0

  • Loading branch information...
1 parent b59faa7 commit 59f83153cac05d149ce782c2ce998489a8e212df @tenderlove tenderlove committed Sep 25, 2012
@@ -37,7 +37,7 @@ def name
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 @@ def draw(&block)
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 @@ def test_rake_routes_shows_route_with_rack_app
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

0 comments on commit 59f8315

Please sign in to comment.