class CustomNameForFixtureOrModelTest

Public Instance Methods

test_named_accessor_for_randomly_named_fixture_and_class() click to toggle source
# File activerecord/test/cases/fixtures_test.rb, line 1031
def test_named_accessor_for_randomly_named_fixture_and_class
  assert_kind_of ClassNameThatDoesNotFollowCONVENTIONS,
                 randomly_named_a9(:first_instance)
end
test_named_accessor_for_randomly_named_namespaced_fixture_and_class() click to toggle source
# File activerecord/test/cases/fixtures_test.rb, line 1036
def test_named_accessor_for_randomly_named_namespaced_fixture_and_class
  assert_kind_of Admin::ClassNameThatDoesNotFollowCONVENTIONS1,
                 admin_randomly_named_a9(:first_instance)
  assert_kind_of Admin::ClassNameThatDoesNotFollowCONVENTIONS2,
                 admin_randomly_named_b0(:second_instance)
end
test_table_name_is_defined_in_the_model() click to toggle source
# File activerecord/test/cases/fixtures_test.rb, line 1043
def test_table_name_is_defined_in_the_model
  assert_equal "randomly_named_table2", ActiveRecord::FixtureSet::all_loaded_fixtures["admin/randomly_named_a9"].table_name
  assert_equal "randomly_named_table2", Admin::ClassNameThatDoesNotFollowCONVENTIONS1.table_name
end