Chris Flipse
2009-Feb-11 01:10 UTC
[rspec-users] [cucumber] [alpha] The Backgrounder is run without cleaning up
This /could/ just a screwy behavior I''m seeing in SQL lite, but I don''t think so; normal scenarios are doing this just fine. I''m playing with the Background feature in the .1.99 beta, and it looks like it''s being run before every feature -- but it''s not cleaning up afterwards. I have a model with a validates_uniquness_of in place, and I''m seeing something that looks like this: Feature: It should be able to run for multiple files Background: Given a model with unique name "Foobar" Scenario: This one runs okay # .... Scenario: But this one fails # background is run, and fails to create the model because of the validation Is this known, and fixed in github, or have I stumbled on something new? -- // anything worth taking seriously is worth making fun of // http://blog.devcaffeine.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090210/1a723cf6/attachment.html>
aslak hellesoy
2009-Feb-11 07:56 UTC
[rspec-users] [cucumber] [alpha] The Backgrounder is run without cleaning up
On Wed, Feb 11, 2009 at 2:10 AM, Chris Flipse <cflipse at gmail.com> wrote:> This /could/ just a screwy behavior I''m seeing in SQL lite, but I don''t > think so; normal scenarios are doing this just fine. > > I''m playing with the Background feature in the .1.99 beta, and it looks like > it''s being run before every feature -- but it''s not cleaning up afterwards. > I have a model with a validates_uniquness_of in place, and I''m seeing > something that looks like this: > > Feature: It should be able to run for multiple files > Background: > Given a model with unique name "Foobar" > > Scenario: This one runs okay > # .... > > Scenario: But this one fails > # background is run, and fails to create the model because of the > validation > > Is this known, and fixed in github, or have I stumbled on something new? >It''s known: http://rspec.lighthouseapp.com/projects/16211/tickets/181-background-runs-outside-of-transactions It''s not fixed yet. Joseph has done some work to address it. I still have some left to do. Aslak> -- > // anything worth taking seriously is worth making fun of > // http://blog.devcaffeine.com/ > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-- Aslak (::)
Chris Flipse
2009-Feb-11 15:24 UTC
[rspec-users] [cucumber] [alpha] The Backgrounder is run without cleaning up
Okay, thanks. Wanted to check before filing a bug so I''m not throwing duplicates into the mix. On Wed, Feb 11, 2009 at 2:56 AM, aslak hellesoy <aslak.hellesoy at gmail.com>wrote:> On Wed, Feb 11, 2009 at 2:10 AM, Chris Flipse <cflipse at gmail.com> wrote: > > This /could/ just a screwy behavior I''m seeing in SQL lite, but I don''t > > think so; normal scenarios are doing this just fine. > > > > I''m playing with the Background feature in the .1.99 beta, and it looks > like > > it''s being run before every feature -- but it''s not cleaning up > afterwards. > > I have a model with a validates_uniquness_of in place, and I''m seeing > > something that looks like this: > > > > Feature: It should be able to run for multiple files > > Background: > > Given a model with unique name "Foobar" > > > > Scenario: This one runs okay > > # .... > > > > Scenario: But this one fails > > # background is run, and fails to create the model because of the > > validation > > > > Is this known, and fixed in github, or have I stumbled on something new? > > > > It''s known: > http://rspec.lighthouseapp.com/projects/16211/tickets/181-background-runs-outside-of-transactions > It''s not fixed yet. Joseph has done some work to address it. I still > have some left to do. > > Aslak > > > -- > > // anything worth taking seriously is worth making fun of > > // http://blog.devcaffeine.com/ > > > > _______________________________________________ > > rspec-users mailing list > > rspec-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rspec-users > > > > > > -- > Aslak (::) > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-- // anything worth taking seriously is worth making fun of // http://blog.devcaffeine.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090211/026d3589/attachment-0001.html>