Sha256: 814eecfa27c5b5ccdb7938a93f15e80450035fe66745f049f6a47388d097d667
Contents?: true
Size: 833 Bytes
Versions: 5
Compression:
Stored size: 833 Bytes
Contents
require 'simplecov' require 'simplecov-gem-profile' SimpleCov.start "gem" $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'rspec' require 'active_record' require 'schema_plus_views' require 'schema_dev/rspec' SchemaDev::Rspec.setup Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| config.warnings = true config.around(:each) do |example| ActiveRecord::Migration.suppress_messages do ActiveRecord::Base.connection.tables.each do |table| ActiveRecord::Migration.drop_table table, force: :cascade end example.run end end end SimpleCov.command_name "[ruby #{RUBY_VERSION} - ActiveRecord #{::ActiveRecord::VERSION::STRING} - #{ActiveRecord::Base.connection.adapter_name}]"
Version data entries
5 entries across 5 versions & 1 rubygems