spec/spec_helper.rb in mongoid_geospatial-2.8.2 vs spec/spec_helper.rb in mongoid_geospatial-2.8.3
- old
+ new
@@ -1,12 +1,22 @@
-require 'pry'
+# require 'pry'
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
MODELS = File.join(File.dirname(__FILE__), "models")
SUPPORT = File.join(File.dirname(__FILE__), "support")
$LOAD_PATH.unshift(MODELS)
$LOAD_PATH.unshift(SUPPORT)
+
+if ENV["CI"]
+ #require "simplecov"
+ require "coveralls"
+ Coveralls.wear!
+ #SimpleCov.formatter = Coveralls::SimpleCov::Formatter
+ #SimpleCov.start do
+ # add_filter "spec"
+ #end
+end
require "mongoid"
# require "mocha"
require "rspec"
require "mongoid_geospatial"