Skip to content

Commit

Permalink
Get tests working. No need for fixtures since we're not using a db
Browse files Browse the repository at this point in the history
  • Loading branch information
p8 committed Aug 19, 2010
1 parent c49022b commit ed7a6e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tryruby/test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ class ActiveSupport::TestCase
# 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.
self.use_transactional_fixtures = true
#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
#self.use_instantiated_fixtures = false

# 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
#fixtures :all

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

0 comments on commit ed7a6e1

Please sign in to comment.