spec/spec_helper.rb in ferver-1.1.0 vs spec/spec_helper.rb in ferver-1.2.0

- old
+ new

@@ -1,40 +1,40 @@ require 'rubygems' require 'spork' require 'coveralls' +require 'codeclimate-test-reporter' # force the environment to 'test' -ENV['RACK_ENV'] = 'test' +ENV['RACK_ENV'] = 'test' -Coveralls.wear! # this uses SimpleCov under its bonnet +CodeClimate::TestReporter.start +Coveralls.wear! Spork.prefork do - require File.join(File.dirname(__FILE__), '..', '/lib/', 'ferver', 'file_list') - require File.join(File.dirname(__FILE__), '..', '/lib/', 'ferver', 'file_id_request') + require File.join(File.dirname(__FILE__), '..', '/lib/', 'ferver') require 'ferver' require 'rubygems' require 'sinatra' require 'rspec' require 'rack/test' - require 'webrat' - + 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 |conf| - conf.include Rack::Test::Methods - conf.mock_framework = :mocha + RSpec.configure do |config| + config.include Rack::Test::Methods end def app @app ||= Ferver::App end end Spork.each_run do -end \ No newline at end of file +end