Hey guys. I'm upgrading to Rails 5 and the modules defined under lib aren't being loaded, which is guess is caused by autoload being disabled after boot? What's the right way to get that code loaded in production?
silverdust: shouldn't that be `Product.find_by(stock_id: params[:stock_id])`
matthewd: if you inhert from ActionController::TestCase you probably can. But now it's moving to key word args to get / post / put - and there seems to be none for setting session variables
matthewd: Yep - in controller tests ( which I'm now fixing for rails 5).
matthewd: you could just set session variables to simulate a logged in user.
matthewd: There currently is - that's what I'm using. I was wondering how you do it now. The Testing guide doesn't mention setting session variables ( as far as I can tell )