Skip to content

Commit

Permalink
version_test tests now has utc_datetime fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
izelnakri committed Oct 1, 2020
1 parent 07cc618 commit 551b6f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/version/paper_trail_version_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defmodule PaperTrailTest.Version do
item_id: 1,
item_changes: %{first_name: "Izel", last_name: "Nakri"},
origin: "test",
inserted_at: ~N[1952-04-01 01:00:00]
inserted_at: DateTime.from_naive!(~N[1952-04-01 01:00:00], "Etc/UTC")
}
@invalid_attrs %{}

Expand Down Expand Up @@ -133,7 +133,7 @@ defmodule PaperTrailTest.Version do
item_id: 3,
item_changes: %{first_name: "Yukihiro", last_name: "Matsumoto"},
origin: "test",
inserted_at: ~N[1965-04-14 01:00:00]
inserted_at: DateTime.from_naive!(~N[1965-04-14 01:00:00], "Etc/UTC")
}

assert Version.last() == nil
Expand All @@ -150,15 +150,15 @@ defmodule PaperTrailTest.Version do
item_id: 2,
item_changes: %{first_name: "Brendan", last_name: "Eich"},
origin: "test",
inserted_at: ~N[1961-07-04 01:00:00]
inserted_at: DateTime.from_naive!(~N[1961-07-04 01:00:00], "Etc/UTC")
},
%{
event: "insert",
item_type: "Person",
item_id: 3,
item_changes: %{first_name: "Yukihiro", last_name: "Matsumoto"},
origin: "test",
inserted_at: ~N[1965-04-14 01:00:00]
inserted_at: DateTime.from_naive!(~N[1965-04-14 01:00:00], "Etc/UTC")
}
],
returning: true,
Expand Down

0 comments on commit 551b6f6

Please sign in to comment.