From 45e9cac12ca99a51ef10e5ee423a6712818ae145 Mon Sep 17 00:00:00 2001 From: Prem Sichanugrist Date: Thu, 21 Feb 2013 21:24:02 -0500 Subject: Define #inspect instead of #to_s Ruby 2.0 Object#inspect does not call #to_s by default anymore. --- railties/test/application/route_inspect_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/railties/test/application/route_inspect_test.rb b/railties/test/application/route_inspect_test.rb index 5c920cb33a..dea0ee71c9 100644 --- a/railties/test/application/route_inspect_test.rb +++ b/railties/test/application/route_inspect_test.rb @@ -18,7 +18,7 @@ module ApplicationTests def test_displaying_routes_for_engines engine = Class.new(Rails::Engine) do - def self.to_s + def self.inspect "Blog::Engine" end end @@ -136,7 +136,7 @@ module ApplicationTests 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 -- cgit v1.2.3