>
> 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<https://github.com/mislav/will_paginate/blob/d56a8436/spec/finders/activerecord_test_connector.rb#L5-23>
> and
> then I check them in tests to see whether there have been too many executed
> during a particular test.
>
>
Thanks a lot for the hint, will investigate it.
May be, I'll be able to rewrite my assert_no_database assertion using
its approach.
All the best,
KIR
>
> --
> 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.
>
--
Kirill (KIR) Maximov
Software Engineer & Starter
Twitter: http://twitter.com/maxkir
Skype: maxkir
http://kirblog.idetalk.com | http://checkvist.com |
http://www.jetbrains.com/teamcity
--
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.