Sha256: 91e964fd39009439ea89e1a644606db1404fa3bbad009a5183ce49775725950a

Contents?: true

Size: 1.29 KB

Versions: 222

Compression:

Stored size: 1.29 KB

Contents

ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
require 'test_help'

class Test::Unit::TestCase
  # Transactional fixtures accelerate your tests by wrapping each test method
  # in a transaction that's rolled back on completion.  This ensures that the
  # test database remains unchanged so your fixtures don't have to be reloaded
  # between every test method.  Fewer database queries means faster tests.
  #
  # Read Mike Clark's excellent walkthrough at
  #   http://clarkware.com/cgi/blosxom/2005/10/24#Rails10FastTesting
  #
  # Every Active Record database supports transactions except MyISAM tables
  # in MySQL.  Turn off transactional fixtures in this case; however, if you
  # don't care one way or the other, switching from MyISAM to InnoDB tables
  # is recommended.
  self.use_transactional_fixtures = true

  # Instantiated fixtures are slow, but give you @david where otherwise you
  # would need people(:david).  If you don't want to migrate your existing
  # test cases which use the @david style and don't mind the speed hit (each
  # instantiated fixtures translates to a database query per test method),
  # then set this back to true.
  self.use_instantiated_fixtures  = false

  # Add more helper methods to be used by all tests here...
end

Version data entries

222 entries across 214 versions & 50 rubygems

Version Path
Agiley-ec2onrails-0.9.10 test/test_app/test/test_helper.rb
Agiley-ec2onrails-0.9.9 test/test_app/test/test_helper.rb
Empact-ec2onrails-0.9.9 test/test_app/test/test_helper.rb
ScholarNexus-ec2onrails-0.9.10 test/test_app/test/test_helper.rb
ScholarNexus-ec2onrails-0.9.11 test/test_app/test/test_helper.rb
activerain-mongrel_runit-0.2.3 test/testapp/test/test_helper.rb
arpitjain11-ec2onrails-0.9.10 test/test_app/test/test_helper.rb
hennk-ec2onrails-0.9.9.1 test/test_app/test/test_helper.rb
hennk-hennk-ec2onrails-0.9.9.2 test/test_app/test/test_helper.rb
hennk-hennk-ec2onrails-0.9.9.3 test/test_app/test/test_helper.rb
mdh-ec2onrails-0.9.10 test/test_app/test/test_helper.rb
pauldowman-ec2onrails-0.9.10 test/test_app/test/test_helper.rb
pelle-ruby-openid-2.1.8 examples/rails_openid/test/test_helper.rb
rsanheim-ec2onrails-0.9.11.1 test/test_app/test/test_helper.rb
skippy-ec2onrails-0.9.10 test/test_app/test/test_helper.rb
skippy-ec2onrails-0.9.11 test/test_app/test/test_helper.rb
spatten-bookkeeper-0.2.0 lib/immutable-attribute-plugin/test/rails_root/test/test_helper.rb
spatten-bookkeeper-0.2.1 lib/immutable-attribute-plugin/test/rails_root/test/test_helper.rb
spatten-bookkeeper-0.2.2 lib/immutable-attribute-plugin/test/rails_root/test/test_helper.rb
passenger-4.0.30 test/stub/rails_apps/1.2/empty/test/test_helper.rb