mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
Tweak exception logging, sync stale behavior
This commit is contained in:
@@ -17,4 +17,12 @@ module SyncableInterfaceTest
|
||||
@syncable.class.any_instance.expects(:perform_sync).with(mock_sync).once
|
||||
@syncable.perform_sync(mock_sync)
|
||||
end
|
||||
|
||||
test "any prior syncs for the same syncable entity are marked stale when new sync is requested" do
|
||||
stale_sync = @syncable.sync_later
|
||||
new_sync = @syncable.sync_later
|
||||
|
||||
assert_equal "stale", stale_sync.reload.status
|
||||
assert_equal "pending", new_sync.reload.status
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user