Sha256: ba9a0bb4d71acbc387218e9ce54e6f25400b972ad2263577fff917592d4c40d2

Contents?: true

Size: 766 Bytes

Versions: 3

Compression:

Stored size: 766 Bytes

Contents

require 'rubygems'
require 'ruby-debug'

RAILS_VERSION = ENV['RAILS_VERSION'] || '=2.2.2'

gem 'activesupport', RAILS_VERSION
require 'active_support'

gem 'activerecord', RAILS_VERSION
require 'active_record'

# Configure ActiveRecord connection
ActiveRecord::Base.establish_connection(
  :adapter  => 'sqlite3',
  :database => ':memory:'
)

# Load Remarkable core on place to avoid gem to be loaded
dir = File.dirname(__FILE__)
require File.join(dir, '..', '..', 'remarkable', 'lib', 'remarkable')

# Load Remarkable ActiveRecord
require File.join(dir, 'model_builder')
require File.join(dir, '..', 'lib', 'remarkable_activerecord')

# Include matchers
Remarkable.include_matchers!(Remarkable::ActiveRecord, Spec::Example::ExampleGroup)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
remarkable_activerecord-3.0.6 spec/spec_helper.rb
remarkable_activerecord-3.0.7 spec/spec_helper.rb
remarkable_activerecord-3.0.8 spec/spec_helper.rb