You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -2464,18 +2466,18 @@ defmodule Ecto.RepoTest do
2464
2466
assert_raiseArgumentError,"attempted to write to non-writable field :never during update",fn->
2465
2467
%MySchemaWritableRaise{id: 1}
2466
2468
|>Ecto.Changeset.change(%{never: 10})
2467
-
|>TestRepo.update()
2469
+
|>TestRepo.update!()
2468
2470
end
2469
2471
2470
2472
assert_raiseArgumentError,"attempted to write to non-writable field :insert during update",fn->
2471
2473
%MySchemaWritableRaise{id: 2}
2472
2474
|>Ecto.Changeset.change(%{insert: 11})
2473
-
|>TestRepo.update()
2475
+
|>TestRepo.update!()
2474
2476
end
2475
2477
2476
2478
%MySchemaWritableRaise{id: 3}
2477
2479
|>Ecto.Changeset.change(%{always: 12})
2478
-
|>TestRepo.update()
2480
+
|>TestRepo.update!()
2479
2481
2480
2482
assert_received{:update,%{changes: [always: 12]}}
2481
2483
end
@@ -2514,28 +2516,37 @@ defmodule Ecto.RepoTest do
2514
2516
end
2515
2517
2516
2518
test"insert with surfaced changes on_writable_violation: :nothing saves changes for writable: :always/:insert and ignores changes for writable: :never"do
test"insert with with surfaced changes and on_writable_violation: :warn saves changes for writable: :always/:insert, ignores changes for writable: :never, and logs a warning"do
2541
+
test"insert with surfaced changes and on_writable_violation: :warn saves changes for writable: :always/:insert, ignores changes for writable: :never, and logs a warning"do
0 commit comments