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

Version Path
auto_html-whistlerbrk-2.0.0.pre test/fixture_setup.rb
auto_html-1.6.4 test/fixture_setup.rb
auto_html-1.6.3 test/fixture_setup.rb
auto_html-1.6.2 test/fixture_setup.rb
auto_html-1.6.1 test/fixture_setup.rb
auto_html-1.6.0 test/fixture_setup.rb
auto_html-1.5.3 test/fixture_setup.rb
auto_html-1.5.2 test/fixture_setup.rb