mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 03:54:08 +00:00
Fix attribute locking namespace conflict, duplicate syncs
This commit is contained in:
@@ -20,7 +20,7 @@ class AutoSyncTest < ActionDispatch::IntegrationTest
|
||||
travel_to Time.current.beginning_of_day
|
||||
last_sync_datetime = 1.hour.ago
|
||||
|
||||
Sync.create!(syncable: @family, created_at: last_sync_datetime)
|
||||
Sync.create!(syncable: @family, created_at: last_sync_datetime, status: "completed")
|
||||
|
||||
assert_difference "Sync.count", 1 do
|
||||
get root_path
|
||||
@@ -32,7 +32,7 @@ class AutoSyncTest < ActionDispatch::IntegrationTest
|
||||
|
||||
last_created_sync_at = 23.hours.ago
|
||||
|
||||
Sync.create!(syncable: @family, created_at: last_created_sync_at)
|
||||
Sync.create!(syncable: @family, created_at: last_created_sync_at, status: "completed")
|
||||
|
||||
assert_no_difference "Sync.count" do
|
||||
get root_path
|
||||
|
||||
Reference in New Issue
Block a user