aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/integration_test.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/actionpack/test/controller/integration_test.rb b/actionpack/test/controller/integration_test.rb
index 3b89531e90..fc24857570 100644
--- a/actionpack/test/controller/integration_test.rb
+++ b/actionpack/test/controller/integration_test.rb
@@ -397,6 +397,25 @@ class IntegrationTestUsesCorrectClass < ActionDispatch::IntegrationTest
end
end
+class IntegrationTestDefaultApp < ActionDispatch::IntegrationTest
+ def setup
+ @app = self.class.app
+ self.class.app = nil
+
+ @test_app = ActionDispatch.test_app
+ ActionDispatch.test_app = 'fake_app'
+ end
+
+ def teardown
+ self.class.app = @app
+ ActionDispatch.test_app = @test_app
+ end
+
+ def test_class_app_returns_ad_test_app_by_default
+ assert_equal ActionDispatch.test_app, self.class.app
+ end
+end
+
class IntegrationProcessTest < ActionDispatch::IntegrationTest
class IntegrationController < ActionController::Base
def get