Created
December 6, 2015 13:15
-
-
Save jaybrueder/f72f74dcbd157f1a40c6 to your computer and use it in GitHub Desktop.
Automatic Testing: spec_helper.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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