spec/spec_helper.rb in syslogger-1.6.4 vs spec/spec_helper.rb in syslogger-1.6.5
- old
+ new
@@ -1,5 +1,21 @@
+require 'simplecov'
require 'rspec'
-$LOAD_PATH.unshift(File.dirname(__FILE__))
-$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+# Start Simplecov
+SimpleCov.start
+
+# Configure RSpec
+RSpec.configure do |config|
+ config.color = true
+ config.fail_fast = false
+
+ config.order = :random
+ Kernel.srand config.seed
+
+ config.expect_with :rspec do |c|
+ c.syntax = :expect
+ end
+end
+
+# Load lib
require 'syslogger'