OUR BLOG

Thoughts on development, design and the world we live in.



Installing RSpec and Sinatra with Rake

By Curtis Jennings Schofield in Uncategorized. Posted on April 4th

Installing Rspec into Sinatra with Rake

This will give you a friendly ‘rails-like’ interface to running your automation tests.

Sinatra doesn’t come with any test harness by default and so you’ll find yourself needing to integrate something.

As a bonus I include a way to gain access to an instance of your sinatra module while the test is running. This allows you to do unit style testing on the Module object itself as it moves through the request life-cycle.

  1. Open the Gist GIST with complete instructions and files
  2. Update the Gemfile
  3. Update the Rakefile
  4. Create a .rspec file
  5. Follow the Instructions

Instructions

Post a Comment

Your email is never shared. Required fields are marked *

*
*