spec/spec_helper.rb in gator-0.0.21.pre vs spec/spec_helper.rb in gator-0.0.22.pre
- old
+ new
@@ -1,12 +1,17 @@
-$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
-$LOAD_PATH.unshift(File.dirname(__FILE__))
-require 'rspec'
-require 'gator'
+unless defined?(SpecHelpers)
-# Requires supporting files with custom matchers and macros, etc,
-# in ./support/ and its subdirectories.
-Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
+ require 'simplecov'
+ require 'simplecov-rcov'
-RSpec.configure do |config|
-
+ SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
+ SimpleCov.root( File.dirname( __FILE__) + '/../' )
+ SimpleCov.coverage_dir( File.join( "test", "coverage" ) )
+ SimpleCov.start
+
+ require File.dirname(__FILE__)+'/../lib/gator'
+
+ RSpec.configure do |config|
+ end
+
end
+