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