Skip to content

Commit 269d7f2

Browse files
committed
use different key names
1 parent c05bd84 commit 269d7f2

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

lib/elixir/test/elixir/exception_test.exs

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -729,33 +729,31 @@ defmodule ExceptionTest do
729729
message =
730730
blame_message(
731731
[
732-
first: nil,
733-
second: nil,
734-
third: nil,
735-
fourth: nil,
736-
fifth: nil,
737-
sixth: nil,
738-
seventh: nil
732+
created_at: nil,
733+
updated_at: nil,
734+
deleted_at: nil,
735+
started_at: nil,
736+
finished_at: nil
739737
],
740738
fn kwlist ->
741-
Keyword.fetch!(kwlist, :firts)
739+
Keyword.fetch!(kwlist, :inserted_at)
742740
end
743741
)
744742

745743
assert message == """
746-
key :firts not found in:
744+
key :inserted_at not found in:
747745
748746
[
749-
first: nil,
750-
second: nil,
751-
third: nil,
752-
fourth: nil,
753-
fifth: nil,
754-
sixth: nil,
755-
seventh: nil
747+
created_at: nil,
748+
updated_at: nil,
749+
deleted_at: nil,
750+
started_at: nil,
751+
finished_at: nil
756752
]. Did you mean:
757753
758-
* :first
754+
* :created_at
755+
* :finished_at
756+
* :started_at
759757
"""
760758
end
761759

0 commit comments

Comments
 (0)