mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
8c512a1caf
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2861 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
15 lines
No EOL
431 B
Ruby
15 lines
No EOL
431 B
Ruby
require 'abstract_unit'
|
|
require 'fixtures/project'
|
|
require 'fixtures/developer'
|
|
|
|
class AssociationsExtensionsTest < Test::Unit::TestCase
|
|
fixtures :projects, :developers
|
|
|
|
def test_extension_on_habtm
|
|
assert_equal projects(:action_controller), developers(:david).projects.find_most_recent
|
|
end
|
|
|
|
def test_extension_on_has_many
|
|
assert_equal comments(:more_greetings), posts(:welcome).comments.find_most_recent
|
|
end
|
|
end |