Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Feb 14, 2020
1 parent e389fd6 commit 5a68205
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integration_test/cases/repo.exs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defmodule Ecto.Integration.RepoTest do
alias Ecto.Integration.PostUserCompositePk

test "returns already started for started repos" do
assert {:error, {:already_started, _}} = TestRepo.start_link
assert {:error, {:already_started, _}} = TestRepo.start_link()
end

test "supports unnamed repos" do
Expand Down Expand Up @@ -1262,13 +1262,13 @@ defmodule Ecto.Integration.RepoTest do
%Permalink{} = TestRepo.insert!(%Permalink{post_id: post_id, url: "Q", title: "Z"})

# left join record is present
assert [%{url: "Q", title: "1", posted: date}] =
assert [%{url: "Q", title: "1", posted: _date}] =
Permalink
|> join(:left, [l], p in Post, on: l.post_id == p.id)
|> select([l, p], merge(l, map(p, ^~w(title posted)a)))
|> TestRepo.all()

assert [%{url: "Q", title: "1", posted: date}] =
assert [%{url: "Q", title: "1", posted: _date}] =
Permalink
|> join(:left, [l], p in Post, on: l.post_id == p.id)
|> select_merge([_l, p], map(p, ^~w(title posted)a))
Expand Down

0 comments on commit 5a68205

Please sign in to comment.