#RubyOnRails - 18 January 2019
« Back 1 day
[03:53:12] beingjohnm: weird. I'm positive that the behaviour of my code changed. I use using self.child.each and now it seems as if I need to do self.child.all.each
[03:54:27] beingjohnm: not getting an error but if I do the former then the loop doesn't seem to run
[03:57:27] beingjohnm: too tired to even create a gist right now. been banging my head on this for a while. writing tests and maybe there is something in there that is getting me
[14:12:05] jarlopez: In RSpec, is there a way to catch/inspect the _second_ call to a particular function of an object?
[14:12:37] jarlopez: Currently I have something like expect_any_instance_of(TheObj).to receive(:the_func) do |expected, args| .... end
[15:45:50] beingjohnm: figure it out. was a combination issue of how I was writing my tests and data being "preloaded" in the model
[15:53:06] Net: Why does actionmailer search for partials in app/views/application_mailer and is there an easy way to have it search app/views/application?