Sha256: 70d4ba5568b918bbc87cab9508435a65fa6e11058e405f11f97c02645b44e0c0

Contents?: true

Size: 899 Bytes

Versions: 14

Compression:

Stored size: 899 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.tables.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

14 entries across 14 versions & 1 rubygems

Version Path
schema_plus_core-1.0.2 spec/spec_helper.rb
schema_plus_core-1.0.1 spec/spec_helper.rb
schema_plus_core-1.0.0 spec/spec_helper.rb
schema_plus_core-0.6.2 spec/spec_helper.rb
schema_plus_core-0.6.1 spec/spec_helper.rb
schema_plus_core-0.6.0 spec/spec_helper.rb
schema_plus_core-0.5.1 spec/spec_helper.rb
schema_plus_core-0.5.0 spec/spec_helper.rb
schema_plus_core-0.4.0 spec/spec_helper.rb
schema_plus_core-0.3.1 spec/spec_helper.rb
schema_plus_core-0.3.0 spec/spec_helper.rb
schema_plus_core-0.2.1 spec/spec_helper.rb
schema_plus_core-0.2.0 spec/spec_helper.rb
schema_plus_core-0.1.0 spec/spec_helper.rb