-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
alteracoes nos model de varias tabelas
- Loading branch information
Showing
7 changed files
with
33 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ defmodule Identidades.Models.ContatoTest do | |
celular_principal: "22123456789", | ||
emails_adicionais: ["[email protected]", "[email protected]"], | ||
celulares_adicionais: ["22987654321", "22987654322"], | ||
endereco_id: endereco.cep | ||
endereco_id: endereco.id | ||
} | ||
|
||
changeset = Contato.changeset(%Contato{}, attrs) | ||
|
@@ -25,7 +25,7 @@ defmodule Identidades.Models.ContatoTest do | |
assert get_change(changeset, :celular_principal) == "22123456789" | ||
assert get_change(changeset, :emails_adicionais) == ["[email protected]", "[email protected]"] | ||
assert get_change(changeset, :celulares_adicionais) == ["22987654321", "22987654322"] | ||
assert get_change(changeset, :endereco_id) == endereco.cep | ||
assert get_change(changeset, :endereco_id) == endereco.id | ||
end | ||
|
||
test "changeset com emails e celulares adicionais vazios" do | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters