aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/engine_test.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/railties/test/engine_test.rb b/railties/test/engine_test.rb
index 7970913d21..8401494bd2 100644
--- a/railties/test/engine_test.rb
+++ b/railties/test/engine_test.rb
@@ -11,4 +11,14 @@ class EngineTest < ActiveSupport::TestCase
assert !engine.routes?
end
+
+ def test_application_can_be_subclassed
+ klass = Class.new(Rails::Application) do
+ attr_reader :hello
+ def initialize
+ @hello = "world"
+ end
+ end
+ assert_equal "world", klass.instance.hello
+ end
end