Avoid calling belongs_to dynamically in tests
Calling belongs_to directly on a class modifies the state of the class which may have impact on consequent tests. Let's provide a way that avoids calling belongs_to, but still tests its behavior
Showing
Please register or sign in to comment