aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application
diff options
context:
space:
mode:
Diffstat (limited to 'railties/test/application')
-rw-r--r--railties/test/application/rake/framework_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/test/application/rake/framework_test.rb b/railties/test/application/rake/framework_test.rb
index d2c2ae2fa0..ec57af79f6 100644
--- a/railties/test/application/rake/framework_test.rb
+++ b/railties/test/application/rake/framework_test.rb
@@ -6,7 +6,6 @@ module ApplicationTests
class FrameworkTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
-
def setup
build_app
boot_rails
@@ -27,7 +26,9 @@ module ApplicationTests
test 'requiring the rake task should not define method .app_generator on Object' do
require "#{app_path}/config/environment"
+
load_tasks
+
assert_raise NameError do
Object.method(:app_generator)
end
@@ -35,6 +36,7 @@ module ApplicationTests
test 'requiring the rake task should not define method .invoke_from_app_generator on Object' do
require "#{app_path}/config/environment"
+
load_tasks
assert_raise NameError do