mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 04:12:37 +09:00
25 lines
451 B
Ruby
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 |