Sha256: 851f9c24058e596e9793dc85868256805c31fb97d4945b57b5c8ef3cf3d7691b

Contents?: true

Size: 905 Bytes

Versions: 5

Compression:

Stored size: 905 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 'rspec/given'
require 'active_record'
require 'schema_plus/core'
require 'schema_dev/rspec'

Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f}

SchemaDev::Rspec.setup

RSpec.configure do |config|
  config.warnings = true
  config.around(:each) do |example|
    ActiveRecord::Migration.suppress_messages do
      begin
        example.run
      ensure
        ActiveRecord::Base.connection.data_sources.each do |table|
          ActiveRecord::Migration.drop_table table, force: :cascade
        end
      end
    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

Version Path
schema_plus_core-2.2.1 spec/spec_helper.rb
schema_plus_core-2.2.0 spec/spec_helper.rb
schema_plus_core-2.1.1 spec/spec_helper.rb
schema_plus_core-2.1.0 spec/spec_helper.rb
schema_plus_core-2.0.1 spec/spec_helper.rb