re: How to stop API calls in RSpec and Return your Own Data VIEW POST

VIEW FULL DISCUSSION
 

A quick note, often you'll want to return status 200 with a specific body. Since status 200 is to_returns default, you can simply write to_return(body: "something").

 

Wow, thanks for the info! The less code you write, the less chance for bugs and errors!

code of conduct - report abuse