spec/spec_helper.rb
def load_schema
  config = YAML::load(IO.read(File.dirname(__FILE__) + '/dummy/config/database.yml'))
  ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/debug.log")

  ActiveRecord::Base.establish_connection #(config[db_adapter])
  load(File.dirname(__FILE__) + "/dummy/db/schema.rb")
end
# and any other gems you need
and any other gems you need
and any other gems you need
def load_schema
  config = YAML::load(IO.read(File.dirname(__FILE__) + '/dummy/config/database.yml'))
  ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/debug.log")
  ActiveRecord::Base.establish_connection 
  load(File.dirname(__FILE__) + "/dummy/db/schema.rb")
end
def load_schema config = YAML :: load ( IO . read ( File . dirname ( __FILE__ ) + '/dummy/config/database.yml' ) ) ActiveRecord :: Base . logger = Logger . new ( File . dirname ( __FILE__ ) + "/debug.log" ) ActiveRecord :: Base . establish_connection load ( File . dirname ( __FILE__ ) + "/dummy/db/schema.rb" ) end
and any other gems you need
and any other gems you need
#(config[db_adapter])