Could you set bullet* to run in your test env and assert that you don't see its 
log output?  It would slow your tests down a fair bit though.  

Don't worry, I'm aware this is a terrible idea - but hopefully it gets the ball 
rolling.

* https://github.com/flyerhzm/bullet


On Monday, 3 September 2012 at 12:34, Paul Annesley wrote:

> I recently read a post about writing tests to catch n+1 query regressions, 
> but I have no idea where it was.
>  
> I'm not sure it's a good idea (or possible to do in a non-fragile way), but 
> it would be useful at this phase of an app I'm working on.
>  
> Does anybody remember the post, or have any thoughts on the matter?
>  
> — Paul
>  
> --  
> You received this message because you are subscribed to the Google Groups 
> "Ruby or Rails Oceania" group.
> To post to this group, send email to [email protected] 
> (mailto:[email protected]).
> To unsubscribe from this group, send email to 
> [email protected] 
> (mailto:[email protected]).
> For more options, visit this group at 
> http://groups.google.com/group/rails-oceania?hl=en.
>  
>  


-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.

Reply via email to