Sha256: 3f17f92a61c31f7005788cde390f3d317f626bf2619b5996ad2150ca68beffa7

Contents?: true

Size: 762 Bytes

Versions: 6

Compression:

Stored size: 762 Bytes

Contents

# encoding: utf-8
require 'rubygems'

RAILS_VERSION = ENV['RAILS_VERSION'] || '2.3.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

6 entries across 6 versions & 1 rubygems

Version Path
remarkable_activerecord-3.1.7 spec/spec_helper.rb
remarkable_activerecord-3.1.8 spec/spec_helper.rb
remarkable_activerecord-3.1.3 spec/spec_helper.rb
remarkable_activerecord-3.1.4 spec/spec_helper.rb
remarkable_activerecord-3.1.5 spec/spec_helper.rb
remarkable_activerecord-3.1.6 spec/spec_helper.rb