If s=Pfaffmanager::Server.createServerFromParams(user_id: user.id, hostname: 'bogus.invalid' , request_status: 'not updated') is the model you’ve created, you might need to fabricate it for the request test to work properly, similar to how the users are fabricated previously in your example.