• Igor Drozdov's avatar
    Avoid calling belongs_to dynamically in tests · 6d9dcb9a
    Igor Drozdov authored
    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
    6d9dcb9a
bulk_insert_safe_spec.rb 7.5 KB