From 846c6da3237fc24b74b48fb51d8d18807cbd7d4e Mon Sep 17 00:00:00 2001 From: Pat Allan Date: Wed, 18 Jan 2012 13:44:12 +1100 Subject: [PATCH] Note truncation strategy for DatabaseCleaner. --- ts/en/testing.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/en/testing.textile b/ts/en/testing.textile index b1df079..d42fdd3 100644 --- a/ts/en/testing.textile +++ b/ts/en/testing.textile @@ -48,7 +48,7 @@ Feature: Searching for articles The reason for this is that while ActiveRecord can run all its operations within a single transaction, Sphinx doesn't have access to that, and so indexing will not include your transaction's changes. -The added complication to this is that you'll probably want to clear all the data from your database between scenarios. This can be done within the @Before@ block, in one of your steps files (see below). Another option is Ben Mabey's "Database Cleaner":http://github.com/bmabey/database_cleaner library. +The added complication to this is that you'll probably want to clear all the data from your database between scenarios. This can be done within the @Before@ block, in one of your steps files (see below). Another option is Ben Mabey's "Database Cleaner":http://github.com/bmabey/database_cleaner library - and make sure you use the truncation strategy. {% highlight ruby %} Before do