Sha256: 7359e104534460a021316443ede4bf24b7eeb20504c57b7753cc8535d516664f
Contents?: true
Size: 666 Bytes
Versions: 1
Compression:
Stored size: 666 Bytes
Contents
require "test_helper" class DeeplyNestedAssociatedRecordHasOneTest < IdentityCache::TestCase def test_deeply_nested_models_can_cache_has_one_associations assert_nothing_raised do Deeply::Nested::AssociatedRecord.has_one :polymorphic_record, as: 'owner' Deeply::Nested::AssociatedRecord.cache_has_one :polymorphic_record, inverse_name: :owner end end def test_deeply_nested_models_can_cache_has_many_associations assert_nothing_raised do Deeply::Nested::AssociatedRecord.has_many :polymorphic_records, as: 'owner' Deeply::Nested::AssociatedRecord.cache_has_many :polymorphic_records, inverse_name: :owner end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
identity_cache-0.2.5 | test/deeply_nested_associated_record_test.rb |