We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 886434b commit 780c5f8Copy full SHA for 780c5f8
test/lib/code_corps/github/sync/sync_test.exs
@@ -116,6 +116,12 @@ defmodule CodeCorps.GitHub.SyncTest do
116
assert Repo.aggregate(Task, :count, :id) == 8
117
assert Repo.aggregate(User, :count, :id) == 13
118
119
+ # Simulate disconnecting the repo and updating a task locally
120
+
121
+ [task | _] = Repo.all(Task, limit: 1)
122
+ changeset = Task.update_changeset(task, %{title: "New title", updated_from: "codecorps"})
123
+ Repo.update!(changeset)
124
125
# Sync a second time – should run without trouble
126
127
Sync.sync_project_github_repo(project_github_repo)
0 commit comments