aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2015-05-05 05:18:32 +0100
committerAndrew White <andyw@pixeltrix.co.uk>2015-05-05 05:22:53 +0100
commitd687881fa80c7f4f09403d3ba64dd84bb1553d02 (patch)
tree481cc5b8623dc9e62fda2d14854e33892c1eb7b0 /railties
parent502e86ab858eca91ad803aa2595f03e52fdcb29f (diff)
downloadrails-d687881fa80c7f4f09403d3ba64dd84bb1553d02.tar.gz
rails-d687881fa80c7f4f09403d3ba64dd84bb1553d02.tar.bz2
rails-d687881fa80c7f4f09403d3ba64dd84bb1553d02.zip
Fix constant in void context warnings
Diffstat (limited to 'railties')
-rw-r--r--railties/test/application/loading_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/application/loading_test.rb b/railties/test/application/loading_test.rb
index 85066210f3..1027bca2c1 100644
--- a/railties/test/application/loading_test.rb
+++ b/railties/test/application/loading_test.rb
@@ -210,7 +210,7 @@ class LoadingTest < ActiveSupport::TestCase
app_file 'config/routes.rb', <<-RUBY
$counter ||= 0
Rails.application.routes.draw do
- get '/c', to: lambda { |env| User; [200, {"Content-Type" => "text/plain"}, [$counter.to_s]] }
+ get '/c', to: lambda { |env| User.name; [200, {"Content-Type" => "text/plain"}, [$counter.to_s]] }
end
RUBY
@@ -243,7 +243,7 @@ class LoadingTest < ActiveSupport::TestCase
$counter ||= 1
$counter *= 2
Rails.application.routes.draw do
- get '/c', to: lambda { |env| User; [200, {"Content-Type" => "text/plain"}, [$counter.to_s]] }
+ get '/c', to: lambda { |env| User.name; [200, {"Content-Type" => "text/plain"}, [$counter.to_s]] }
end
RUBY