diff options
author | Carlhuda <carlhuda@engineyard.com> | 2009-12-23 14:55:12 -0800 |
---|---|---|
committer | Carlhuda <carlhuda@engineyard.com> | 2009-12-23 16:13:09 -0800 |
commit | 38aeb1528c376f7a058beea6db0a328720b85f01 (patch) | |
tree | c7bb623d13b49e7861e531ec05ba4f2f2c770a0b /railties/test/plugins/framework_extension_test.rb | |
parent | fa8dfc7d014f6768599077b79a874894e13d317f (diff) | |
download | rails-38aeb1528c376f7a058beea6db0a328720b85f01.tar.gz rails-38aeb1528c376f7a058beea6db0a328720b85f01.tar.bz2 rails-38aeb1528c376f7a058beea6db0a328720b85f01.zip |
Moving out some framework specific initializers into the framework libraries.
Diffstat (limited to 'railties/test/plugins/framework_extension_test.rb')
-rw-r--r-- | railties/test/plugins/framework_extension_test.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/railties/test/plugins/framework_extension_test.rb b/railties/test/plugins/framework_extension_test.rb new file mode 100644 index 0000000000..87e19cadce --- /dev/null +++ b/railties/test/plugins/framework_extension_test.rb @@ -0,0 +1,18 @@ +require "isolation/abstract_unit" + +module PluginsTest + class FrameworkExtensionTest < Test::Unit::TestCase + def setup + build_app + boot_rails + end + + test "active_record extensions are applied to ActiveRecord" do + add_to_config "config.active_record.table_name_prefix = 'tbl_'" + + require "#{app_path}/config/environment" + + assert_equal 'tbl_', ActiveRecord::Base.table_name_prefix + end + end +end
\ No newline at end of file |