[rspec-users] [Cucumber] cucumber command does not work in db transaction

Ben Mabey ben at benmabey.com
Thu Jan 29 10:05:29 EST 2009


Juanma Cervera wrote:
> Joseph Wilk wrote:
>   
>> Woops, sorry I meant:
>>
>> @@@
>> Cucumber::Rails.use_transactional_fixtures
>> @@@
>>     
>
>
> Joseph, thanks for the reply.
> I do have Cucumber::Rails.use_transactional_fixtures in env.rb
>
> I have verified it failing when setting the database in the new 
> background section of the feature.
> In that case I have to call manually db:test:prepare to clean up the 
> database.
> But it works like expected when I move the setup to the Scenario.
>
> Juanma Cervera
>
>   
The transactions are setup to start and be rolled back for each 
scenario.. Depending on how the Background section was implemented its 
setup may not be included in this transaction... So it sounds like it 
may be a bug with the new feature. 

WDYT Joeseph?

-Ben


More information about the rspec-users mailing list