Skip to content

Commit e79677f

Browse files
Update Ecto and fix integration tests (#495)
1 parent 7f0bc47 commit e79677f

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

integration_test/pg/constraints_test.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ defmodule Ecto.Integration.ConstraintsTest do
5454
assert_raise Ecto.ConstraintError, ~r/constraint error when attempting to insert struct/, fn ->
5555
PoolRepo.insert(overlapping_changeset)
5656
end
57-
assert exception.message =~ "cannot_overlap (exclusion_constraint)"
57+
assert exception.message =~ "\"cannot_overlap\" (exclusion_constraint)"
5858
assert exception.message =~ "The changeset has not defined any constraint."
5959
assert exception.message =~ "call `exclusion_constraint/3`"
6060

@@ -65,7 +65,7 @@ defmodule Ecto.Integration.ConstraintsTest do
6565
|> Ecto.Changeset.exclusion_constraint(:from)
6666
|> PoolRepo.insert()
6767
end
68-
assert exception.message =~ "cannot_overlap (exclusion_constraint)"
68+
assert exception.message =~ "\"cannot_overlap\" (exclusion_constraint)"
6969

7070
{:error, changeset} =
7171
overlapping_changeset
@@ -83,7 +83,7 @@ defmodule Ecto.Integration.ConstraintsTest do
8383
PoolRepo.insert(changeset)
8484
end
8585

86-
assert exception.message =~ "positive_price (check_constraint)"
86+
assert exception.message =~ "\"positive_price\" (check_constraint)"
8787
assert exception.message =~ "The changeset has not defined any constraint."
8888
assert exception.message =~ "call `check_constraint/3`"
8989

integration_test/tds/constraints_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ defmodule Ecto.Integration.ConstraintsTest do
5353
assert_raise Ecto.ConstraintError, ~r/constraint error when attempting to insert struct/, fn ->
5454
PoolRepo.insert(overlapping_changeset)
5555
end
56-
assert exception.message =~ "cannot_overlap (check_constraint)"
56+
assert exception.message =~ "\"cannot_overlap\" (check_constraint)"
5757
assert exception.message =~ "The changeset has not defined any constraint."
5858
assert exception.message =~ "call `check_constraint/3`"
5959

mix.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"decimal": {:hex, :decimal, "2.0.0", "a78296e617b0f5dd4c6caf57c714431347912ffb1d0842e998e9792b5642d697", [:mix], [], "hexpm", "34666e9c55dea81013e77d9d87370fe6cb6291d1ef32f46a1600230b1d44f577"},
77
"deep_merge": {:hex, :deep_merge, "0.2.0", "c1050fa2edf4848b9f556fba1b75afc66608a4219659e3311d9c9427b5b680b3", [:mix], [], "hexpm", "e3bf435a54ed27b0ba3a01eb117ae017988804e136edcbe8a6a14c310daa966e"},
88
"earmark_parser": {:hex, :earmark_parser, "1.4.29", "149d50dcb3a93d9f3d6f3ecf18c918fb5a2d3c001b5d3305c926cddfbd33355b", [:mix], [], "hexpm", "4902af1b3eb139016aed210888748db8070b8125c2342ce3dcae4f38dcc63503"},
9-
"ecto": {:git, "https://github.com/elixir-ecto/ecto.git", "ab0771ef7ea0825f0dadfe02bfbe04d946ca5f07", []},
9+
"ecto": {:git, "https://github.com/elixir-ecto/ecto.git", "cc44028484005e3b7c4b6b949834788c1f4cdf07", []},
1010
"ex_doc": {:hex, :ex_doc, "0.29.0", "4a1cb903ce746aceef9c1f9ae8a6c12b742a5461e6959b9d3b24d813ffbea146", [:mix], [{:earmark_parser, "~> 1.4.19", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "f096adb8bbca677d35d278223361c7792d496b3fc0d0224c9d4bc2f651af5db1"},
1111
"jason": {:hex, :jason, "1.4.0", "e855647bc964a44e2f67df589ccf49105ae039d4179db7f6271dfd3843dc27e6", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "79a3791085b2a0f743ca04cec0f7be26443738779d09302e01318f97bdb82121"},
1212
"makeup": {:hex, :makeup, "1.1.0", "6b67c8bc2882a6b6a445859952a602afc1a41c2e08379ca057c0f525366fc3ca", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "0a45ed501f4a8897f580eabf99a2e5234ea3e75a4373c8a52824f6e873be57a6"},

0 commit comments

Comments
 (0)