pippi icon indicating copy to clipboard operation
pippi copied to clipboard

Database transactions change using rspec

Open phantomwhale opened this issue 10 years ago • 3 comments

Adding the four lines suggested to rails_helper.rb and running USE_PIPPI=1 bundle exec ./bin/rake causes numerous tests to fail in our otherwise passing test suite.

All these tests are related to duplicate records clashes, or return values not being empty, all of which point to transactions breaking, or the database cleaner gem not firing correctly.

We are running with rspec 3.2, database cleaner (set up as Avdi does in his blog post) and pippi 0.0.12

phantomwhale avatar Feb 18 '15 00:02 phantomwhale

@phantomwhale thanks for the report. I think there are still some bugs in the method decorating logic, and you're seeing those. Any chance you can supply more details to help with tracking down the issues?

tcopeland avatar Feb 23 '15 14:02 tcopeland

Hey Tom - in the trenches at the moment getting a new app up and live, but if I get a chance to circle back and try pippi again during a hack day, I'll certainly try and extract some more details.

phantomwhale avatar Feb 26 '15 02:02 phantomwhale

Cool, thanks @phantomwhale, and I'll poke around from this end too.

tcopeland avatar Feb 26 '15 02:02 tcopeland