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
dejan-auto_html-1.1.0 test/fixture_setup.rb
dejan-auto_html-1.1.1 test/fixture_setup.rb
dejan-auto_html-1.1.2 test/fixture_setup.rb
dejan-auto_html-1.2.0 test/fixture_setup.rb
auto_html-1.5.1.1 test/fixture_setup.rb
auto_html-1.5.1 test/fixture_setup.rb
auto_html-1.5.0 test/fixture_setup.rb
marcosinger-auto_html-1.3.6 test/fixture_setup.rb
galetahub-auto_html-1.0.1 test/fixture_setup.rb
auto_html-1.4.2 test/fixture_setup.rb
auto_html-1.4.1 test/fixture_setup.rb
auto_html-1.4.0 test/fixture_setup.rb
auto_html-1.3.7 test/fixture_setup.rb
marcosinger-auto_html-1.3.5 test/fixture_setup.rb
marcosinger-auto_html-1.3.4 test/fixture_setup.rb
auto_html-1.3.6 test/fixture_setup.rb
auto_html-1.3.5 test/fixture_setup.rb
auto_html-1.3.4 test/fixture_setup.rb
auto_html-1.3.3 test/fixture_setup.rb
auto_html-1.3.2 test/fixture_setup.rb