RAILS_ENV = 'test' # ––––––––––––– # Test Coverage # ––––––––––––– if ENV['TRAVIS'] require "codeclimate-test-reporter" CodeClimate::TestReporter.start allow_external_requests_to = Regexp.new(ENV['CODECLIMATE_API_HOST'].to_s) else require 'simplecov' SimpleCov.start :rails do add_group 'Decorators', 'app/decorators' add_group 'Workers', 'app/workers' add_group 'Core Extensions', 'lib/extensions/core_extensions' add_group 'Rails Extensions', 'lib/extensions/rails_extensions' add_filter '/vendor' add_filter '/config/' end end # –––––––––––– # Dependencies # –––––––––––– $LOAD_PATH.unshift File.expand_path('../fixtures', __FILE__) require 'gummi' require 'db/person' require 'db/rating' require 'db/ship' RSpec.configure do |config| config.before(:suite) do Gummi::DbLayer::DefaultIndex.setup DB::Person.sync_mapping! DB::Rating.sync_mapping! DB::Ship.sync_mapping! end config.after(:suite) do Gummi::DbLayer::DefaultIndex.teardown end end