spec/spec_helper.rb in dionysus-1.0.2 vs spec/spec_helper.rb in dionysus-2.0.0
- old
+ new
@@ -1,8 +1,19 @@
-$LOAD_PATH.unshift(File.dirname(__FILE__))
-$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
-require 'dionysus'
-require 'rspec'
+require 'rubygems'
+require 'simplecov'
+SimpleCov.start do
+ add_filter "/lib/dionysus/version.rb"
+ add_filter "/spec/"
+end
-Rspec.configure do |config|
-
+require 'bundler'
+
+require 'simplecov'
+SimpleCov.start
+
+Bundler.require :default, :test
+
+Dir[File.expand_path("../support/**/*.rb", __FILE__)].each {|f| require f}
+
+RSpec.configure do |config|
+ config.mock_with :mocha
end