Sha256: 8486ec450db28821385e5e513096a78c1623726d07dce008f797ef9a127156aa
Contents?: true
Size: 441 Bytes
Versions: 8
Compression:
Stored size: 441 Bytes
Contents
module FixtureSetup fixtures_dir = File.dirname(__FILE__) + '/fixtures' connections = YAML.load_file("#{fixtures_dir}/database.yml") ActiveRecord::Base.establish_connection(connections['sqlite3']) ActiveRecord::Migration.verbose = false load "#{fixtures_dir}/schema.rb" def setup fixtures_dir = File.dirname(__FILE__) + '/fixtures' ActiveRecord::Migration.verbose = false load "#{fixtures_dir}/schema.rb" end end
Version data entries
8 entries across 8 versions & 2 rubygems