Sha256: 0ae9df3403a388a5d7348b7ce1617b6313ac0cd461e4afd51d7ae9224fb71c67

Contents?: true

Size: 537 Bytes

Versions: 2

Compression:

Stored size: 537 Bytes

Contents

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

require 'perimeter-activerecord'

require 'sqlite3'
require 'active_record'

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

2 entries across 2 versions & 1 rubygems

Version Path
perimeter-activerecord-0.0.2 spec/spec_helper.rb
perimeter-activerecord-0.0.1 spec/spec_helper.rb