assert_equal'accounts',MyApplication::Billing::Account.table_name,'table_name for ActiveRecord model in module'
assert_equal'companies',MyApplication::Business::Client.table_name,'table_name for ActiveRecord model subclass'
assert_equal'company_contacts',MyApplication::Business::Client::Contact.table_name,'table_name for ActiveRecord model enclosed by another ActiveRecord model'
assert_equal'prefixed_companies',MyApplication::Business::Prefixed::Company.table_name,'inferred table_name for ActiveRecord model in module with table_name_prefix'
assert_equal'prefixed_companies',MyApplication::Business::Prefixed::Nested::Company.table_name,'table_name for ActiveRecord model in nested module with a parent table_name_prefix'
assert_equal'companies',MyApplication::Business::Prefixed::Firm.table_name,'explicit table_name for ActiveRecord model in module with table_name_prefix should not be prefixed'
assert_equal'global_companies',MyApplication::Business::Company.table_name,'inferred table_name for ActiveRecord model in module without table_name_prefix'
assert_equal'prefixed_companies',MyApplication::Business::Prefixed::Company.table_name,'inferred table_name for ActiveRecord model in module with table_name_prefix'
assert_equal'prefixed_companies',MyApplication::Business::Prefixed::Nested::Company.table_name,'table_name for ActiveRecord model in nested module with a parent table_name_prefix'
assert_equal'companies',MyApplication::Business::Prefixed::Firm.table_name,'explicit table_name for ActiveRecord model in module with table_name_prefix should not be prefixed'
assert_equal'companies_suffixed',MyApplication::Business::Suffixed::Company.table_name,'inferred table_name for ActiveRecord model in module with table_name_suffix'
assert_equal'companies_suffixed',MyApplication::Business::Suffixed::Nested::Company.table_name,'table_name for ActiveRecord model in nested module with a parent table_name_suffix'
assert_equal'companies',MyApplication::Business::Suffixed::Firm.table_name,'explicit table_name for ActiveRecord model in module with table_name_suffix should not be suffixed'
assert_equal'companies_global',MyApplication::Business::Company.table_name,'inferred table_name for ActiveRecord model in module without table_name_suffix'
assert_equal'companies_suffixed',MyApplication::Business::Suffixed::Company.table_name,'inferred table_name for ActiveRecord model in module with table_name_suffix'
assert_equal'companies_suffixed',MyApplication::Business::Suffixed::Nested::Company.table_name,'table_name for ActiveRecord model in nested module with a parent table_name_suffix'
assert_equal'companies',MyApplication::Business::Suffixed::Firm.table_name,'explicit table_name for ActiveRecord model in module with table_name_suffix should not be suffixed'