spec/spec_helper.rb in hieracles-0.1.0 vs spec/spec_helper.rb in hieracles-0.1.1

- old
+ new

@@ -1,21 +1,26 @@ $LOAD_PATH << File.expand_path('../../lib', __FILE__) -# require 'rubygems' -# require 'bundler' -# if ENV['COV'] -# require 'simplecov' -# SimpleCov.profiles.define :app do -# add_group 'bin', '/bin' -# add_group 'lib', '/lib' -# add_filter '/vendor/' -# add_filter '/spec/' -# end -# SimpleCov.start :app -# else -# require 'coveralls' -# Coveralls.wear! -# end +if !ENV['BUILD'] + require 'rubygems' + require 'bundler' + + if ENV['COV'] + require 'simplecov' + SimpleCov.profiles.define :app do + add_group 'bin', '/bin' + add_group 'lib', '/lib' + add_filter '/vendor/' + add_filter '/spec/' + end + SimpleCov.start :app + else + #require 'coveralls' + #Coveralls.wear! + require "codeclimate-test-reporter" + CodeClimate::TestReporter.start + end +end require 'hieracles' RSpec.configure do |config| config.mock_with :rspec