Repository navigation
Port the shared Hyperclient lifecycle to Mongoid - #20
Merged
Merged
Conversation
Carry the master-first scenario from PR #18 unchanged, adapting only persistence notes and assertions. Use default HAL encoding, update/delete through returned self links, and expand fresh paginated collections. Preserve the existing multiple-record MongoDB coverage. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Port the master-first Hyperclient scenario from #18 into with-mongoid. Review/merge the shared scenario on master first; this is its MongoDB-specific port, not a separate Mongoid-only feature.
The README Ruby code is byte-for-byte identical across all three example branches: create, update via the returned HAL self link, list a freshly expanded paginated collection, and delete only the created spline. Replace the old collection-wide deletion demo with this shared lifecycle.
Only branch-specific prose and assertions differ: writes persist in MongoDB, links handle string IDs and cursor pagination, database reloads observe updates, and deleting the created record leaves an empty test database. Preserve existing multiple-record/name/pagination coverage and use default HAL encoding throughout the Hyperclient specs.
Only README and its corresponding request specs change. No API implementation, dependency, or CI changes.
AI-authored on behalf of @dblock.
The full five-combination MongoDB matrix and lint passed on 6927fdf: Tests, Rubocop.