-
Notifications
You must be signed in to change notification settings - Fork 484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getter method for strategy (to help with debugging) #511
Comments
@rlue I think it's a good idea but it's not a trivial change because of this: database_cleaner/lib/database_cleaner/configuration.rb Lines 64 to 67 in f052d64
If your application is using more than one connection, then that could return an Array (or a Hash?) Are you interested in working on a PR for this? |
I am, but it's going to be a while before I have time to familiarize myself with the codebase enough to know what the implications of my changes will be. I'm not sure I understand — the |
@etagwerker I finally got around to taking a look at the code. Here's my understanding — please correct me if I'm mistaken:
What would you think of adding the On the other hand, judging from the comments, it looks like you plan on doing a deeper redesign of the class hierarchy database_cleaner. Thoughts? |
Sorry, disregard my last comment. 1) I hadn't noticed that I'm submitting a PR according to your previous suggestion. |
It appears that DatabaseCleaner does not currently support a getter method for determining which strategy it currently employs:
It would be nice to have this just so I could confirm, in my debugger, that I have DatabaseCleaner set up the way I had intended.
Is there another way to do this that I've missed?
The text was updated successfully, but these errors were encountered: