Setting Up Rails with Rspec From the Start

Feb 26, 2017

So this morning I was working on my side project and I realized that one aspect of it alone is now 26 plus PORO (plain old ruby objects) models and growing rapidly. Given that I’m building this along the lines of a service oriented architeture where I want to be able to replace components prototyped in Ruby down the road with Elixir this would make sense so it was time to isolate it into a standalone http service as a separate Rails API stack.

And this brings up the need to generate a stack with RSpec from the start. Here’s how to do this: