[Backgroundrb-devel] backgroundrb and rspec Stories

hemant gethemant at gmail.com
Thu Jan 3 17:01:51 EST 2008


On Jan 3, 2008 9:34 PM, Raimond Garcia <voodoorai2000 at gmail.com> wrote:
> Hi,
>
> I would like to use backgroundrb inside a story, been trying to set
> this up for a while, but I think the only solution is to use fixture
> files and unit testing.  The problem is that every time I call a new
> worker, the test database gets wiped out, and only has available the
> records in fixture files. Instead, it would be great if the test
> database maintains its state throughout the rspec Story and so can use
> and update the records of previous steps.

Or you can mock calls to database.

-- 
Let them talk of their oriental summer climes of everlasting
conservatories; give me the privilege of making my own summer with my
own coals.

http://gnufied.org


More information about the Backgroundrb-devel mailing list