diff options
author | José Valim <jose.valim@gmail.com> | 2011-05-25 01:37:55 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-05-25 01:37:55 +0200 |
commit | 52e01fc59dfcadaa0fd7773fb4d9a04dff297ce8 (patch) | |
tree | 1c74d37b78b4af1c5b43df667ea5176ff60256ec /railties/test/application | |
parent | 76cebf2e5364fd929f60379be636f525c6473dcc (diff) | |
download | rails-52e01fc59dfcadaa0fd7773fb4d9a04dff297ce8.tar.gz rails-52e01fc59dfcadaa0fd7773fb4d9a04dff297ce8.tar.bz2 rails-52e01fc59dfcadaa0fd7773fb4d9a04dff297ce8.zip |
Everyone receives app as argument for consistency.
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/console_test.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/railties/test/application/console_test.rb b/railties/test/application/console_test.rb index 5ae6323345..db8f1f2ac6 100644 --- a/railties/test/application/console_test.rb +++ b/railties/test/application/console_test.rb @@ -10,7 +10,8 @@ class ConsoleTest < Test::Unit::TestCase def load_environment(sandbox = false) require "#{rails_root}/config/environment" - Rails.application.load_console(sandbox) + Rails.application.sandbox = sandbox + Rails.application.load_console end def test_app_method_should_return_integration_session @@ -78,8 +79,8 @@ class ConsoleTest < Test::Unit::TestCase value = false Class.new(Rails::Railtie) do - console do |sandbox| - value = sandbox + console do |app| + value = app.sandbox? end end |