mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
18 lines
431 B
Ruby
18 lines
431 B
Ruby
|
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
|