diff options
author | Carl Lerche <carllerche@mac.com> | 2009-12-31 11:57:48 -0800 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2009-12-31 11:57:59 -0800 |
commit | 2f8643955a780f0c2fe46d0ae68db8d51b76fbbf (patch) | |
tree | 4108699d7a1fcf551d598f3e7aba1221d8b38de8 /railties/test/application | |
parent | a23f4b6aeed6b49f90f5c544c818798840f090b7 (diff) | |
download | rails-2f8643955a780f0c2fe46d0ae68db8d51b76fbbf.tar.gz rails-2f8643955a780f0c2fe46d0ae68db8d51b76fbbf.tar.bz2 rails-2f8643955a780f0c2fe46d0ae68db8d51b76fbbf.zip |
Raise a helpful error if config.frameworks is used
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/configuration_test.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb index a7df1e09ab..1f04eb9f75 100644 --- a/railties/test/application/configuration_test.rb +++ b/railties/test/application/configuration_test.rb @@ -100,5 +100,21 @@ module ApplicationTests assert !ActionController.autoload?(:RecordIdentifier) end + + test "runtime error is raised if config.frameworks= is used" do + add_to_config "config.frameworks = []" + + assert_raises RuntimeError do + require "#{app_path}/config/environment" + end + end + + test "runtime error is raised if config.frameworks is used" do + add_to_config "config.frameworks -= []" + + assert_raises RuntimeError do + require "#{app_path}/config/environment" + end + end end end |