Sha256: 9235b65159487bfe39378bca3c131de7499efd5d783444f62846ae346a78e591

Contents?: true

Size: 710 Bytes

Versions: 3

Compression:

Stored size: 710 Bytes

Contents

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

require 'rspec'
require 'sqlite3'
require 'delegate'

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

    spawn_model 'Follow', ActiveRecord::Base do
      acts_as_follow
    end
  end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
partisan-0.5.1 spec/spec_helper.rb
partisan-0.5 spec/spec_helper.rb
partisan-0.4.2 spec/spec_helper.rb