Sha256: 4116675a157d3abb5c6d23e9630ffac0be250c7f627f7e68464ace71e0204c01

Contents?: true

Size: 1.07 KB

Versions: 2

Compression:

Stored size: 1.07 KB

Contents

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

class ActiveSupport::TestCase
  # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
  #
  # Note: You'll currently still have to declare fixtures explicitly in integration tests
  # -- they do not yet inherit this setting
  fixtures :all

  # The only drawback to using transactional fixtures is when you actually 
  # need to test transactions.  Since your test is bracketed by a transaction,
  # any transactions started in your code will be automatically rolled back.
  use_transactional_fixtures = false

  # 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.
  use_instantiated_fixtures  = false

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
acts_as_ferret-0.5.4 doc/demo/test/test_helper.rb
acts_as_ferret-0.5.3 doc/demo/test/test_helper.rb