Skip to content

Commit

Permalink
removes test causing error #45
Browse files Browse the repository at this point in the history
  • Loading branch information
RobStallion committed Mar 4, 2019
1 parent 0c11e6f commit 2b1bdf0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ defmodule Alog.Repo.Migrations.CreateComments do
# timestamps are needed in alog but may or may not be in the schema.
add(:cid, :string, primary_key: true)
add(:entry_id, :string)
add(:comment, :string)
add(:deleted, :boolean, default: false)
add(:comment, :string)

timestamps()
end
Expand Down
5 changes: 0 additions & 5 deletions test/insert_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ defmodule AlogTest.InsertTest do
assert atom == :error
end

test "inserting the same comment twice fails without changeset" do
Repo.insert(%Comment{comment: "hi"})
Repo.insert(%Comment{comment: "hi"})
end

# test "validates required fields" do
# {:error, changeset} =
# %User{}
Expand Down
2 changes: 1 addition & 1 deletion test/support/comment.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ defmodule Alog.TestApp.Comment do
@primary_key {:cid, :string, autogenerate: false}
schema "comments" do
field(:entry_id, :string)
field(:comment, :string)
field(:deleted, :boolean, default: false)
field(:comment, :string)
end

def changeset(comment_struct, attrs \\ %{}) do
Expand Down

0 comments on commit 2b1bdf0

Please sign in to comment.