diff options
author | Carl Lerche <carllerche@mac.com> | 2009-12-31 10:36:24 -0800 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2009-12-31 11:57:59 -0800 |
commit | 1e41097294b6f966f65909db5c56c9fc21b665f7 (patch) | |
tree | 5174c6a407cf0b513a8854233d0e1ff9d01be693 /railties/test/application | |
parent | 783caae52f3c00975490cd40dc849f648c8fa9e1 (diff) | |
download | rails-1e41097294b6f966f65909db5c56c9fc21b665f7.tar.gz rails-1e41097294b6f966f65909db5c56c9fc21b665f7.tar.bz2 rails-1e41097294b6f966f65909db5c56c9fc21b665f7.zip |
Fully remove config.frameworks in favor of requires in boot.rb
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/configuration_test.rb | 3 | ||||
-rw-r--r-- | railties/test/application/initializer_test.rb | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb index ece41f9de8..a7df1e09ab 100644 --- a/railties/test/application/configuration_test.rb +++ b/railties/test/application/configuration_test.rb @@ -75,10 +75,11 @@ module ApplicationTests test "the application can be marked as threadsafe when there are no frameworks" do FileUtils.rm_rf("#{app_path}/config/environments") add_to_config <<-RUBY - config.frameworks = [] config.threadsafe! RUBY + use_frameworks [] + assert_nothing_raised do require "#{app_path}/config/application" end diff --git a/railties/test/application/initializer_test.rb b/railties/test/application/initializer_test.rb index 42fc416faa..e03f9ffb00 100644 --- a/railties/test/application/initializer_test.rb +++ b/railties/test/application/initializer_test.rb @@ -7,7 +7,6 @@ module ApplicationTests def setup build_app boot_rails - require "rails" end test "initializing an application adds the application paths to the load path" do @@ -51,8 +50,9 @@ module ApplicationTests assert_nothing_raised NameError do add_to_config <<-RUBY config.root = "#{app_path}" - config.frameworks = [] RUBY + + use_frameworks [] require "#{app_path}/config/environment" end end |