Guidance on Generators
Need to implement a generator for a resource action that makes use of
after_action
hooks (organization > establishment > establishment_user)
This is my chain of actions:
This is what I'm trying so far without success
3 Replies
Mmm I just run it on IEX and the generator seems to be working, it is just failing on tests
What could be the reason?
You may need to set a
nil
value for that argument
it will generate random inputs otherwise
i.e defaults: [arg: nil]
The role isn't passed as an argument, is manually being set on the
create_establishment
action
I'm using an enum table for roles btw, could that be the reason? Maybe the generator does not know of the records available in the role table?
Yep, it wasn't a problem related to Ash but more about my lack of understanding of the testing environment, so sorry. Closing this.