Browse files

Use top level Rails constant

  • Loading branch information...
1 parent cdd8a58 commit cd145dec0847944daa5c2bc27565d7ecb42e9c85 @vongruenigen vongruenigen committed Oct 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/minitest/rails/action_dispatch.rb
View
2 lib/minitest/rails/action_dispatch.rb
@@ -16,7 +16,7 @@ class IntegrationTest < MiniTest::Rails::ActiveSupport::TestCase
def self.app
# DEPRECATE Rails application fallback
# This should be set by the initializer
- @@app || (defined?(Rails.application) && Rails.application) || nil
+ @@app || (defined?(::Rails.application) && ::Rails.application) || nil
end
def self.app=(app)

0 comments on commit cd145de

Please sign in to comment.