diff options
Diffstat (limited to 'activerecord/test/modules_test.rb')
-rw-r--r-- | activerecord/test/modules_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/modules_test.rb b/activerecord/test/modules_test.rb index f13d140b6d..d34afbb8f8 100644 --- a/activerecord/test/modules_test.rb +++ b/activerecord/test/modules_test.rb @@ -5,14 +5,14 @@ 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 MyApplication::Business::Firm.find(:first).has_clients?, "Firm should have clients" + firm = MyApplication::Business::Firm.find(:first) 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 - project = MyApplication::Business::Project.find_first + project = MyApplication::Business::Project.find(:first) project.developers << MyApplication::Business::Developer.create("name" => "John") assert "John", project.developers.last.name end |