You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.
After using this gem for a while at work I'm actually going back on this decision. It is very helpful that rabl makes some implicit decisions about what the root node and object roots should look like, but when I'm writing my test I really like to be explicit about those expectations. That way when rabl updates and their defaults have changed my tests will tell me that something changed.
I actually think a better feature would be to have no default at all (ie if the user didn't set a root as part of the test then it always fails because I shouldn't try to guess what they want).
By default rabl will set a root key for collections. But rspec_rabl currently assumes that no root key will be used unless one is specified via:
Some defaults should be added to make an attempt to correctly guess what the default root node should be.
The text was updated successfully, but these errors were encountered: