spec/spec_helper.rb in jbox-gitolite-1.2.6 vs spec/spec_helper.rb in jbox-gitolite-1.2.7

- old
+ new

@@ -1,21 +1,22 @@ -require 'rubygems' -require 'spork' +require 'simplecov' require 'forgery' +require 'rspec' +require 'support/helper' -require 'simplecov' -require 'simplecov-rcov' -SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter -SimpleCov.start +## Start Simplecov +SimpleCov.start do + add_filter 'spec/' +end -Spork.prefork do - # Loading more in this block will cause your tests to run faster. However, - # if you change any configuration or code from libraries loaded here, you'll - # need to restart spork for it take effect. +## Configure RSpec +RSpec.configure do |config| + include Helper + config.color = true + config.fail_fast = false + config.expect_with :rspec do |c| + c.syntax = :expect + end end -Spork.each_run do - # This code will be run each time you run your specs. - require File.expand_path('../../lib/gitolite', __FILE__) - include Gitolite -end +require 'gitolite'