Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mjaric committed Feb 27, 2018
1 parent 1908a31 commit 4f861b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion lib/tds_ecto/connection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ if Code.ensure_loaded?(Tds) do
require Logger
require Tds.Ecto.Utils
alias Tds.Ecto.Utils
alias Tds.Ecto.VarChar
alias Tds.Query
alias Ecto.Query.Tagged
require Ecto.Schema
Expand Down
6 changes: 3 additions & 3 deletions test/integration_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ defmodule Tds.EctoTest.IntegrationTest do
price: price
}

assert {:ok, result} = Repo.insert(model, timeout: 30_000)
assert [model] = Repo.all(Models.Item)
assert [model] = Models.Item
assert {:ok, _} = Repo.insert(model, timeout: 30_000)
assert [%{id: 1}=_] = Repo.all(Models.Item)
assert [%{id: 1}=_] = Models.Item
|> where([i], i.title_bin == ^title_bin)
|> Repo.all()

Expand Down
2 changes: 1 addition & 1 deletion test/tds_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ defmodule Tds.Ecto.TdsTest do
"GROUP BY @6, @7 HAVING (@8) AND (@9) " <>
"ORDER BY @10, m0.[x] OFFSET @12 ROW FETCH NEXT @11 ROWS ONLY"

assert SQL.all(query) == String.rstrip(result)
assert SQL.all(query) == String.trim_trailing(result)
end

# ## *_all
Expand Down

0 comments on commit 4f861b3

Please sign in to comment.