14 lines
332 B
Ruby
14 lines
332 B
Ruby
ENV['RACK_ENV'] = 'test'
|
|
|
|
require 'sinatra/contrib'
|
|
require 'travis/web'
|
|
|
|
ru_file = File.expand_path('../../config.ru', __FILE__)
|
|
web_app = Rack::Builder.parse_file(ru_file).first
|
|
|
|
RSpec.configure do |config|
|
|
config.expect_with :rspec, :stdlib
|
|
config.include Sinatra::TestHelpers
|
|
config.before(:each) { set_app(web_app) }
|
|
end
|