diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-15 07:02:05 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-15 07:02:05 +0000 |
commit | 3f1acf49bd4cfa902388f000ca96c848c3666017 (patch) | |
tree | af197c1f4ea786e76da1f0679225572ea1953a58 /activerecord/test/modules_test.rb | |
parent | d0c000ab9e90be4896744cb6ec107dffa573f2dd (diff) | |
download | rails-3f1acf49bd4cfa902388f000ca96c848c3666017.tar.gz rails-3f1acf49bd4cfa902388f000ca96c848c3666017.tar.bz2 rails-3f1acf49bd4cfa902388f000ca96c848c3666017.zip |
Deprecation tests. Remove warnings for dynamic finders and for the foo_count ethod if it's also an attribute.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5116 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
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 |