Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't alias subspecs when merge!ing #14

Merged
merged 1 commit into from
Mar 22, 2024

Don't alias subspecs when merge!ing

b3dfc77
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Don't alias subspecs when merge!ing #14

Don't alias subspecs when merge!ing
b3dfc77
Select commit
Loading
Failed to load commit list.
GitHub Actions / Rspec Tests - 3.1 succeeded Mar 22, 2024 in 1s

28 passed, 0 failed and 0 skipped

Tests passed successfully

✅ test_results/rspec.xml

28 tests were completed in 161ms with 28 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
rspec 28✅ 161ms

✅ rspec

spec.unit.deep_preloader_spec
  ✅ DeepPreloader can parse a hash spec
  ✅ DeepPreloader can merge specs
  ✅ DeepPreloader with a test model can parse a polymorphic hash spec
  ✅ DeepPreloader with a one-to-one relationship in the belongs_to direction is not already loaded
  ✅ DeepPreloader with a one-to-one relationship in the belongs_to direction loads the child
  ✅ DeepPreloader with a one-to-one relationship in the belongs_to direction sets up the inverse relationship
  ✅ DeepPreloader with a one-to-one relationship in the belongs_to direction satisfies a childless parent
  ✅ DeepPreloader with a one-to-one relationship in the belongs_to direction loads more than one entity
  ✅ DeepPreloader with a one-to-one relationship in the belongs_to direction uses preloaded children from other parents before hitting the database
  ✅ DeepPreloader with a one-to-one relationship in the belongs_to direction supports locking
  ✅ DeepPreloader with a one-to-one relationship in the has_one direction loads the parent
  ✅ DeepPreloader with a one-to-one relationship in the has_one direction sets up the inverse relationship
  ✅ DeepPreloader with a one-to-one relationship in the has_one direction satisfies a parentless child
  ✅ DeepPreloader with a one-to-one relationship in the has_one direction loads more than one entity
  ✅ DeepPreloader with a one-to-one relationship in the has_one direction handles a preloaded child
  ✅ DeepPreloader with multiple belongs_to relationships with distinct children loads multiple relationships at once
  ✅ DeepPreloader with multiple belongs_to relationships with a diamond loads the same child for all three
  ✅ DeepPreloader with a has_many relationship loads the child
  ✅ DeepPreloader with a has_many relationship sets up the inverse relationship
  ✅ DeepPreloader with a has_many relationship satisfies a childless parent
  ✅ DeepPreloader with a has_many relationship handles preloaded children
  ✅ DeepPreloader with a has_many STI relationship loads the children
  ✅ DeepPreloader with a has_many STI relationship loads polymorphically through the children
  ✅ DeepPreloader with a polymorphic relationship loads different child types
  ✅ DeepPreloader with a polymorphic relationship sets the inverse associations
  ✅ DeepPreloader with a polymorphic relationship separates parent context when loading backwards
  ✅ DeepPreloader with a polymorphic relationship satisfies a childless parent
  ✅ DeepPreloader with a polymorphic relationship with grandchildren loads sub-specs through the polymorphic association