Skip to content


In order to test with rspec, we have to require "rspec" instead of just "spec". #74

merged 1 commit into from

2 participants


A little change in the doc to address this.

@rkh rkh merged commit 9e1924b into sinatra:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 testing.markdown
4 testing.markdown
@@ -184,7 +184,7 @@ Sinatra can be tested under plain RSpec. The `Rack::Test` module should be
included within the `describe` block:
require 'hello_world' # <-- your sinatra app
- require 'spec'
+ require 'rspec'
require 'rack/test'
set :environment, :test
@@ -206,7 +206,7 @@ included within the `describe` block:
Make `Rack::Test` available to all spec contexts by including it via
- require 'spec'
+ require 'rspec'
require 'rack/test'
RSpec.configure do |conf|
Something went wrong with that request. Please try again.