Sha256: c82aa4326e626dff07cb5c199bfb466f5935882e825399b7372cd6150c594eed

Contents?: true

Size: 536 Bytes

Versions: 1

Compression:

Stored size: 536 Bytes

Contents

$LOAD_PATH.unshift File.expand_path('../support/models', __FILE__)

require 'sqlite3'
require 'active_record'
require 'perimeter-activerecord'

RSpec.configure do |config|

  config.before(:each) do
    ActiveRecord::Base.establish_connection adapter: 'sqlite3', database: ':memory:'

    ActiveRecord::Schema.define do
      create_table :games do |table|
        table.column :genre, :string
        table.column :name, :string
        table.column :director, :string
        table.column :year, :integer
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
perimeter-activerecord-0.0.4 spec/spec_helper.rb