travis-web/spec/spec_helper.rb
2012-10-22 21:21:19 +02:00

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