Sha256: 164fcd65cc49c0e847add05cb3953029b04c51b0daf7a2198661c0e0522d1c8c

Contents?: true

Size: 914 Bytes

Versions: 77

Compression:

Stored size: 914 Bytes

Contents

# Load Silence Functionality
require File.expand_path(File.dirname(__FILE__) + "/../../../test/silence.rb")

# Load Environment
silence_warnings do
  ENV["RAILS_ENV"] = "test"
  require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
  require 'test_help'
end

# Load Riot Test Environment
require File.expand_path(File.dirname(__FILE__) + "/../../../test/integration/test_init.rb")

# Run Migrations
silence_stream(STDOUT) do
  dbconf = YAML::load(File.open('config/database.yml'))[Rails.env]
  ActiveRecord::Base.establish_connection(dbconf)
  ActiveRecord::Base.logger = Logger.new(File.open('log/database.log', 'a'))
  silence_stream(STDOUT) { ActiveRecord::Migrator.up('db/migrate') }
end

class Riot::Situation
  def app
    ActionController::Dispatcher.new
  end
end

class ActiveSupport::TestCase
  self.use_transactional_fixtures = true
  self.use_instantiated_fixtures  = false
end


Version data entries

77 entries across 77 versions & 2 rubygems

Version Path
rabl-0.14.3 fixtures/rails2/test/test_helper.rb
rabl-0.14.2 fixtures/rails2/test/test_helper.rb
rabl-0.14.1 fixtures/rails2/test/test_helper.rb
rabl-0.14.0 fixtures/rails2/test/test_helper.rb
rabl-0.13.1 fixtures/rails2/test/test_helper.rb
rabl-0.13.0 fixtures/rails2/test/test_helper.rb
rabl-0.12.0 fixtures/rails2/test/test_helper.rb
rabl-0.11.8 fixtures/rails2/test/test_helper.rb
rabl-0.11.7 fixtures/rails2/test/test_helper.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/rabl-0.11.6/fixtures/rails2/test/test_helper.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/rabl-0.11.6/fixtures/rails2/test/test_helper.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/rabl-0.11.6/fixtures/rails2/test/test_helper.rb
rabl-0.11.6 fixtures/rails2/test/test_helper.rb
rabl-0.11.5 fixtures/rails2/test/test_helper.rb
rabl-0.11.4 fixtures/rails2/test/test_helper.rb
rabl-0.11.3 fixtures/rails2/test/test_helper.rb
rabl-0.11.2 fixtures/rails2/test/test_helper.rb
rabl-0.11.1 fixtures/rails2/test/test_helper.rb
rabl-0.11.0 fixtures/rails2/test/test_helper.rb
rabl-0.10.1 fixtures/rails2/test/test_helper.rb