class FixtureWithSetModelClassTest
Public Instance Methods
test_loads_the_associations_to_fixtures_with_set_model_class()
click to toggle source
# File activerecord/test/cases/fixtures_test.rb, line 595 def test_loads_the_associations_to_fixtures_with_set_model_class post = other_posts(:second_welcome) comment = other_comments(:second_greetings) assert_equal [comment], post.comments assert_equal post, comment.post end
test_uses_fixture_class_defined_in_yaml()
click to toggle source
# File activerecord/test/cases/fixtures_test.rb, line 591 def test_uses_fixture_class_defined_in_yaml assert_kind_of Post, other_posts(:second_welcome) end