Sha256: 933f4e9da4e6e455f97559388b33e330231b32951b9a19c309cfcd9214085491

Contents?: true

Size: 311 Bytes

Versions: 24

Compression:

Stored size: 311 Bytes

Contents

module FixtureSetup
  def setup
    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"
  end
end

Version data entries

24 entries across 24 versions & 4 rubygems

Version Path
auto_html-1.3.1 test/fixture_setup.rb
auto_html-1.3.0 test/fixture_setup.rb
auto_html-1.2.1 test/fixture_setup.rb
auto_html-1.2.0 test/fixture_setup.rb