Sha256: 3d985e86efa4d057d1d3b057dd8682b5bc00fb8f5e51dc33ab5cebc3e61173d5

Contents?: true

Size: 684 Bytes

Versions: 12

Compression:

Stored size: 684 Bytes

Contents

require 'rubygems'
gem 'rspec'
gem 'activerecord'

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

require 'active_record'
require 'active_record/fixtures'
require 'fake_arel'
gem 'sqlite3-ruby'

ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => 'spec/test.db')
ActiveRecord::Base.logger = Logger.new(STDOUT) if $0 == 'irb'

ActiveRecord::Base.silence do
  ActiveRecord::Migration.verbose = false

  # load schema
  load File.join('spec/fixtures/schema.rb')
  # load fixtures
  Fixtures.create_fixtures("spec/fixtures", ActiveRecord::Base.connection.tables)
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
fake_arel-1.5.1 spec/spec_helper.rb
fake_arel-1.5.0 spec/spec_helper.rb
fake_arel-1.4.0 spec/spec_helper.rb
fake_arel-1.3.4 spec/spec_helper.rb
fake_arel-1.3.3 spec/spec_helper.rb
fake_arel-1.3.2 spec/spec_helper.rb
fake_arel-1.3.1 spec/spec_helper.rb
fake_arel-1.3.0 spec/spec_helper.rb
fake_arel-1.2.0 spec/spec_helper.rb
fake_arel-1.1.0 spec/spec_helper.rb
fake_arel-1.0.0 spec/spec_helper.rb
fake_arel-1.0.0.a spec/spec_helper.rb