aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorYehuda Katz <wycats@Yehuda-Katz.local>2010-01-02 22:49:40 -0800
committerYehuda Katz <wycats@Yehuda-Katz.local>2010-01-02 22:49:40 -0800
commit106d8f76888e76096f83e884f55dbcd536a0c1d7 (patch)
tree4127758273beb4b8e91a4e514b057081a1437527 /railties/test
parentf1cd3a98f3c2ff3446c637ad706faf7dbfef268e (diff)
downloadrails-106d8f76888e76096f83e884f55dbcd536a0c1d7.tar.gz
rails-106d8f76888e76096f83e884f55dbcd536a0c1d7.tar.bz2
rails-106d8f76888e76096f83e884f55dbcd536a0c1d7.zip
AppName::Application.root should work
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/application/configuration_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb
index adb867ca6d..79dfacdcdb 100644
--- a/railties/test/application/configuration_test.rb
+++ b/railties/test/application/configuration_test.rb
@@ -24,6 +24,11 @@ module ApplicationTests
assert_equal Pathname.new(app_path), Rails.application.root
end
+ test "the application root can be seen from the application singleton" do
+ require "#{app_path}/config/environment"
+ assert_equal Pathname.new(app_path), AppTemplate::Application.root
+ end
+
test "the application root can be set" do
copy_app
add_to_config <<-RUBY