initialize the right variable

上级 8de4d61d
......@@ -73,7 +73,7 @@ class Foo < Rails::Railtie ; config.to_prepare { $to_prepare = true } ; end
end
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
assert_not $before_configuration
require "#{app_path}/config/environment"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册