DEV Community

Cover image for How to pass boolean values in Rspec

How to pass boolean values in Rspec

Madhusudhanan on June 24, 2023

Hey there, fellow programmer! 🤓 Let's dive into the world of Rails API testing and explore how to handle boolean parameters correctly. It's time to...
Collapse
 
cescquintero profile image
Francisco Quintero 🇨🇴
get '/api/endpoint', params: { active: true }, as: :json
Enter fullscreen mode Exit fullscreen mode

Yeah, I've been there done that.