Sha256: cdfd764fb8dcf276011c3ebb704a0c4718c76f3085c5aaecaad03e64b08cb912

Contents?: true

Size: 556 Bytes

Versions: 2

Compression:

Stored size: 556 Bytes

Contents

$:.unshift File.expand_path('../lib', __FILE__)

require 'rspec'
require 'sqlite3'

require 'activerecord_strict_validations'

# Require our macros and extensions
Dir[File.expand_path('../../spec/support/macros/*.rb', __FILE__)].map(&method(:require))

RSpec.configure do |config|
  # Include our macros
  config.include DatabaseMacros
  config.include ModelMacros

  config.before(:each) do
    # Create the SQLite database
    setup_database
  end

  config.after(:each) do
    # Make sure we remove our test database file
    cleanup_database
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activerecord_strict_validations-0.3.1 spec/spec_helper.rb
activerecord_strict_validations-0.3 spec/spec_helper.rb