aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/railties/railtie_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/test/railties/railtie_test.rb')
-rw-r--r--railties/test/railties/railtie_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/railties/test/railties/railtie_test.rb b/railties/test/railties/railtie_test.rb
index 22fb0a2ec3..9283482893 100644
--- a/railties/test/railties/railtie_test.rb
+++ b/railties/test/railties/railtie_test.rb
@@ -15,6 +15,14 @@ module RailtiesTest
@app ||= Rails.application
end
+ test "name can be retrieved from namespaced railties" do
+ module ActiveRailtie
+ class Railtie < Rails::Railtie; end
+ end
+
+ assert_equal :active_railtie, ActiveRailtie::Railtie.railtie_name
+ end
+
test "can find railtie by name" do
class TieA < Rails::Railtie; railtie_name :railtie_a; end
class TieB < Rails::Railtie; railtie_name :railtie_b; end