Skip to content

Instantly share code, notes, and snippets.

@jaybrueder
Created December 6, 2015 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaybrueder/f72f74dcbd157f1a40c6 to your computer and use it in GitHub Desktop.
Save jaybrueder/f72f74dcbd157f1a40c6 to your computer and use it in GitHub Desktop.
Automatic Testing: spec_helper.rb
ENV['RACK_ENV'] = 'test'
require File.join(File.dirname(__FILE__), '..', 'app.rb')
require 'rack/test'
def app
Sinatra::Application
end
RSpec.configure do |config|
config.include Rack::Test::Methods
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment