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

Add path_ids_in_database back #647

Merged
merged 5 commits into from
Mar 25, 2023
Merged

Conversation

kbrock
Copy link
Collaborator

@kbrock kbrock commented Mar 25, 2023

added path_ids_in_database back.
It was removed by mistake in #589

Fixes #645

kbrock added 5 commits March 24, 2023 23:14
this was removed by 0fcd12f stefankroes#589

adding fields back.
added tests to exercise
Change nav test to more clearly show what is being tested
assert_attributes really changed
there are so many attributes to test for each node. It made the tests unreadable.
This required changing the format of the parameters

The matrix felt like a hack at first, but it is not programmatically testing stuff.
there is a hardcoded list of what needs to be done for each node. Which in essence
is what tests do.

This is now properly testing all these attributes for in_database along the whole lifecycle
of these objects
The destroy and the after save callbacks leverage the before_last_save methods.
I had trouble testing those values outside callbacks, and in the callback, I
didn't know the best way to assert values.
This was removed by stefankroes#589
Adding it back.
@kbrock kbrock merged commit 3cc9c2c into stefankroes:master Mar 25, 2023
@kbrock kbrock deleted the add_apth_ids_master branch March 25, 2023 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

path_ids_in_database removed?
1 participant