• Yosi Attias's avatar
    Fix record delete · ba278101
    Yosi Attias authored
    Before this test, `#delete` wasn’t working, since `build_changes` was called and read the ids from the already loaded target.
    
    This happens because, `delete_records` in torque calls `update_attribute` which run save callbacks and triggers the autosave callbacks.
    
    The proper fix I found is to manually remove the records from `@target` like rails does.
    ba278101