Sha256: f79b0b66c19bcacff262171cb7adad63d56e3f7b577b7aaf8382ec5378af4772

Contents?: true

Size: 475 Bytes

Versions: 3

Compression:

Stored size: 475 Bytes

Contents

ENV["RAILS_ENV"] ||= 'test'

require 'rails'
require 'rspec-rails'
require 'active_record'

$:.unshift File.dirname(__FILE__) + '/../lib'

# Thie first line isn't working so I have added the second...
require File.dirname(__FILE__) + '/../lib/belongs_to_enum'
ActiveRecord::Base.send(:extend, BelongsToEnum::Hook)
 
ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")
 
# AR keeps printing annoying schema statements
$stdout = StringIO.new

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
belongs_to_enum-0.4.0 spec/spec_helper.rb
belongs_to_enum-0.3.1 spec/spec_helper.rb
belongs_to_enum-0.3 spec/spec_helper.rb