Sha256: 8c526154da3656ee841048586e6a8eaa9655e3305a56a128ca7cf059b13d8cbf

Contents?: true

Size: 613 Bytes

Versions: 1

Compression:

Stored size: 613 Bytes

Contents

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

require 'rspec'
require 'sqlite3'

require 'partisan'

# 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.include RailsMacros

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

    # Run our migration
    run_default_migration
  end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
partisan-0.3 spec/spec_helper.rb