diff options
Diffstat (limited to 'activerecord/test/modules_test.rb')
-rw-r--r-- | activerecord/test/modules_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/test/modules_test.rb b/activerecord/test/modules_test.rb index b2ef8730ea..f915102eb0 100644 --- a/activerecord/test/modules_test.rb +++ b/activerecord/test/modules_test.rb @@ -5,10 +5,9 @@ class ModulesTest < Test::Unit::TestCase fixtures :accounts, :companies, :projects, :developers def test_module_spanning_associations - assert MyApplication::Business::Firm.find(:first).has_clients?, "Firm should have clients" firm = MyApplication::Business::Firm.find(:first) + assert !firm.clients.empty?, "Firm should have clients" assert_nil firm.class.table_name.match('::'), "Firm shouldn't have the module appear in its table name" - assert_equal 2, firm.clients_count, "Firm should have two clients" end def test_module_spanning_has_and_belongs_to_many_associations |