spec/spec_helper.rb in chozo-0.0.3 vs spec/spec_helper.rb in chozo-0.1.0
- old
+ new
@@ -1,10 +1,10 @@
require 'rubygems'
require 'bundler'
-require 'spork'
+require 'chozo/core_ext'
-Spork.prefork do
+def setup_rspec
require 'rspec'
require 'json_spec'
Dir[File.join(File.expand_path("../../spec/support/**/*.rb", __FILE__))].each { |f| require f }
@@ -21,8 +21,19 @@
clean_tmp_path
end
end
end
-Spork.each_run do
+if mri? && ENV['CI'] != 'true'
+ require 'spork'
+
+ Spork.prefork do
+ setup_rspec
+ end
+
+ Spork.each_run do
+ require 'chozo'
+ end
+else
require 'chozo'
+ setup_rspec
end