spec/spec_helper.rb in dependent_restrict-0.2.2 vs spec/spec_helper.rb in dependent_restrict-0.2.3
- old
+ new
@@ -6,31 +6,10 @@
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
require 'rubygems'
require 'bundler/setup'
-MINIMUM_COVERAGE = 81
-
-if ENV['COVERAGE']
- require 'simplecov'
- require 'coveralls'
- Coveralls.wear!
-
- SimpleCov.formatter = Coveralls::SimpleCov::Formatter
- SimpleCov.start do
- add_filter '/vendor/'
- add_filter '/spec/'
- add_group 'lib', 'lib'
- end
- SimpleCov.at_exit do
- SimpleCov.result.format!
- percent = SimpleCov.result.covered_percent
- unless percent >= MINIMUM_COVERAGE
- puts "Coverage must be above #{MINIMUM_COVERAGE}%. It is #{"%.2f" % percent}%"
- Kernel.exit(1)
- end
- end
-end
+require 'support/coverage_loader'
require 'dependent_restrict'
DB_FILE = 'tmp/test_db'
FileUtils.mkdir_p File.dirname(DB_FILE)