bmabey/database_cleaner — pull request #111 by bttlsgtmajor (2012-04-05 17:46:45+00:00)
Title: Surgical Strike

Hey Ben,

I'm pretty sure that I uploaded all the changes to add in surgicalstrike. It works similar to truncation except that you have to use DatabaseCleaner.start to begin the strategy. I only wrote it for ActiveRecord as that's the only thing that we use here so if we want to extend out functionality to the other gems we'll have to build that in but I'm not familiar with them. Let me know if you have any questions in regards to it and I'll walk you through it or if you find any bugs. I would like to remove the need to use the two global variables that I have, but I couldn't seem to get it to work with class variables in a module that both AR and SS included... Let me know if you have any ideas in this regard.

Thanks,

Brandon