On Oct 16, 2011, at 7:42 PM, KIR wrote: > What I'm trying to test - that my code doesn't perform SQL operations when > building json, i.e. all data should be preloaded.
That's a perfectly valid thing to test. Looks like it might be a regression. I suggest that you update the issue (where you commented on) with this information, including your own code related to this and provide a stack trace pasted into a Gist. Until you have a solution for this problem, I suggest testing this another way. In will_paginate, I subscribe to all SQL queries performed and then I check them in tests to see whether there have been too many executed during a particular test. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" 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/rubyonrails-core?hl=en.
