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:
parent
8de4d61dc2
commit
7f7e2f12ab
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue