Files
one/flow/spec/spec_helper.rb
T
2012-09-13 14:27:11 +02:00

25 lines
451 B
Ruby

$: << '.'
EXAMPLES_PATH = File.join(File.dirname(__FILE__), 'examples')
# Load the testing libraries
require 'rubygems'
require 'rspec'
require 'rack/test'
# Load the Sinatra app
require 'controllers/server'
# Make Rack::Test available to all spec contexts
RSpec.configure do |conf|
conf.include Rack::Test::Methods
end
# Set the Sinatra environment
set :environment, :test
# Add an app method for RSpec
def app
Sinatra::Application
end