Sha256: efb653880abe63ec897688f2d653e57e5c64e20ff56699fd20aa30d42003fc26

Contents?: true

Size: 709 Bytes

Versions: 2

Compression:

Stored size: 709 Bytes

Contents

require 'rubygems'
require 'spork'
require 'coveralls'
require 'codeclimate-test-reporter'

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

CodeClimate::TestReporter.start
Coveralls.wear!

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

  require 'rubygems'
  require 'sinatra'
  require 'rspec'
  require 'rack/test'
  require 'rspec-html-matchers'

  # test environment stuff
  set :environment, :test
  set :run, false
  set :raise_errors, true
  set :logging, false

  EMPTY_FILE_LIST = []

  RSpec.configure do |config|
    config.include Rack::Test::Methods
  end

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

Spork.each_run do
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ferver-1.2.1 spec/spec_helper.rb
ferver-1.2.0 spec/spec_helper.rb