Error Division Zero when hit endoint with rspec

I have some test with rspec, but when i run that test, apper error division zero like images below, can someone help me?

Screenshot_3

Screenshot_2 n

Would you like to include the code from the controller and the model(s) this test exercises? Otherwise it’s just guessing… :slight_smile:

@bbb thanks, this case is solved

1 Like

This is because the rack attack must have a limit and period, so we have to manually set the limit and period when env testing