Sha256: 11aa04928b5ab312216179482eea0006aa52b2f38b41fd515c48629e480f284f

Contents?: true

Size: 712 Bytes

Versions: 1

Compression:

Stored size: 712 Bytes

Contents

require 'rubygems'
require 'spork'
require 'coveralls'

# force the environment to 'test'
ENV['RACK_ENV'] = 'test' 

Coveralls.wear! # this uses SimpleCov under its bonnet

Spork.prefork do
  require File.join(File.dirname(__FILE__), '..', '/lib/', 'ferver', 'file_list')
  require 'ferver'

  require 'rubygems'
  require 'sinatra'
  require 'rspec'
  require 'rack/test'
  require 'webrat'
  
  # test environment stuff
  set :environment, :testf
  set :run, false
  set :raise_errors, true
  set :logging, false

  EMPTY_FILE_LIST = []

  RSpec.configure do |conf|
    conf.include Rack::Test::Methods
    conf.mock_framework = :mocha
  end

  def app
    @app ||= Ferver::App
  end
end

Spork.each_run do
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ferver-1.0.0 spec/spec_helper.rb