-
Notifications
You must be signed in to change notification settings - Fork 40
Description
Hi there,
I was looking at tests over at jsonapi-authorization side and I'm getting a feeling that they might be a bit out of hand. I have looked through your tests quite a lot, and checked out #21 for more than once (looking good by the way 👍).
I'm impressed by the way you've done testing here, and I cannot shake the feeling of jsonapi-authorization and pundit-resources specs being quite similar in nature when come to the bottom of it. I was wondering whether I would be able to extract a subset of these specs as ones where both of our gems do it similarly.
Would you be interested in accepting a PR where I'd try to create some subset of tests that both of our gems could run? These common tests would most likely be run on request level, rather than on controller level. I'd try to keep those tests focused and not require library changes on your side.
I have a feeling that getting to a similar testing level would benefit both of our gems, and we'd be able to really see where our approaches diverge. It might even be that we'll both figure out what tradeoffs our gems do.
What do you think?