1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

initialize the right variable

This commit is contained in:
Rafael Mendonça França 2014-06-17 20:39:49 -03:00
parent 8de4d61dc2
commit 7f7e2f12ab

View file

@ -73,7 +73,7 @@ module RailtiesTest
end end
test "railtie have access to application in before_configuration callbacks" do test "railtie have access to application in before_configuration callbacks" do
$after_initialize = false $before_configuration = false
class Foo < Rails::Railtie ; config.before_configuration { $before_configuration = Rails.root.to_path } ; end class Foo < Rails::Railtie ; config.before_configuration { $before_configuration = Rails.root.to_path } ; end
assert_not $before_configuration assert_not $before_configuration
require "#{app_path}/config/environment" require "#{app_path}/config/environment"