spec/spec_helper.rb in schema_validations-0.2.2 vs spec/spec_helper.rb in schema_validations-1.0.0
- old
+ new
@@ -1,10 +1,8 @@
-if RUBY_VERSION > "1.9"
- require 'simplecov'
- require 'simplecov-gem-adapter'
- SimpleCov.start "gem"
-end
+require 'simplecov'
+require 'simplecov-gem-adapter'
+SimpleCov.start "gem"
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'rspec'
@@ -22,6 +20,6 @@
next if c.name.blank?
ActiveSupport::Dependencies.remove_constant c.name
end
end
-SimpleCov.command_name ActiveRecord::Base.connection.adapter_name if defined? SimpleCov
+SimpleCov.command_name "[Ruby #{RUBY_VERSION} - ActiveRecord #{::ActiveRecord::VERSION::STRING}]"