rspec - Devise Invitable: user.invite! doesn't work in test environment -


I have to call user.invite! As part of my tests this device is capable to use and therefore both of them should be sent an invitation to the user and an invite token should also be prepared for them and save them in the database.

Unfortunately, nothing happens in the testing environment and calls to user.invite! simply assigns zero and the user does not make any changes to the object.

>

How can I remedy it?

I'm stupid invites! I stumbled on the method and did not do anything.

As you were.


Comments