spec/spec_helper.rb in son_jay-0.2.0.alpha vs spec/spec_helper.rb in son_jay-0.3.0
- old
+ new
@@ -2 +1,15 @@
+with_active_support = !!ENV['LOAD_ACTIVE_SUPPORT']
+
+if with_active_support
+ gem 'activesupport'
+ require 'active_support/all'
+ puts 'ActiveSupport loaded'
+end
+
+gem 'simplecov'
+require 'simplecov'
+cmd_active_supp_qual = with_active_support ? 'with' : 'without'
+SimpleCov.command_name "rspec:#{cmd_active_supp_qual}_active_support"
+
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
+
require 'son_jay'