rails 4 compatibility - user_test compatible updates
#3 Updated by Daniel Lobato Garcia almost 6 years ago
in dhcp - reload in rails 4 does not nullify instance variables, so we use find to instantiate a completely different object, thus nullifying the variables.
in user_test - in real life we don't assign roles without a user existing, thus, in test we can assign after user created as well. UserRole presence validation on owner doesn't work in creation, as apparently polymorphic associations aren't populated on create, just after they're actually saved.