Sha256: e8d9dbf6b958007dff7f40535ede3d97a8ddda06d04bb4e7d68a881cc3b3142d

Contents?: true

Size: 626 Bytes

Versions: 1

Compression:

Stored size: 626 Bytes

Contents

RAILS_ENV = "test"

def silently
  old_stdout, $stdout = $stdout, StringIO.new
  yield
  $stdout = old_stdout
end 

RAILS_ROOT = File.dirname(__FILE__)
$LOAD_PATH << "#{RAILS_ROOT}/../lib" << RAILS_ROOT

require 'rubygems'
require 'initializer'
require 'active_support'
require 'sqlite3'
require 'active_record'
require 'test/spec'
require 'ruby-debug'

ActiveRecord::Base.establish_connection(
  config = {
    :adapter => 'sqlite3',
    :database => ':memory:'
  })
ActiveRecord::Base.connection.instance_variable_set('@config', config)

silently { require 'schema' }
require 'models'
require 'ultrasphinx'

Debugger.start

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ultrasphinx-1.5.1 test/test_helper.rb