Sha256: 2095f57d1ff023048b5eeda30e5260e88ac2673d5bf964ce304370784e0b1c0f

Contents?: true

Size: 820 Bytes

Versions: 1

Compression:

Stored size: 820 Bytes

Contents

require 'simplecov'

SimpleCov.start do
  add_filter 'spec'
  minimum_coverage(76)

  if ENV['CI']
    require 'simplecov-lcov'

    SimpleCov::Formatter::LcovFormatter.config do |c|
      c.report_with_single_file = true
      c.single_report_path = 'coverage/lcov.info'
    end

    formatter SimpleCov::Formatter::LcovFormatter
  end
end

require 'active_record'
require 'amoeba'

adapter = if defined?(JRuby)
            require 'activerecord-jdbcsqlite3-adapter'
            'jdbcsqlite3'
          else
            require 'sqlite3'
            'sqlite3'
          end

ActiveRecord::Base.establish_connection(adapter: adapter, database: ':memory:')

::RSpec.configure do |config|
  config.order = :default
end

load File.dirname(__FILE__) + '/support/schema.rb'
load File.dirname(__FILE__) + '/support/models.rb'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
amoeba-3.3.0 spec/spec_helper.rb