diff options
author | neodarz <neodarz@neodarz.net> | 2017-02-06 16:52:00 +0100 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2017-02-06 16:52:00 +0100 |
commit | 120bf89930ce7e136ba0b0499bce7b0f8b95f296 (patch) | |
tree | d86d7320d75f33fac32b897277296f5a6c80e645 /test/models | |
parent | 663d70f2d9d917ac5f89faebc289a664b7dcc22a (diff) | |
download | the_transcriber_backend-120bf89930ce7e136ba0b0499bce7b0f8b95f296.tar.xz the_transcriber_backend-120bf89930ce7e136ba0b0499bce7b0f8b95f296.zip |
Add a not secure function for upload files with curl
Diffstat (limited to '')
-rw-r--r-- | test/models/audio_file_api_test.exs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/models/audio_file_api_test.exs b/test/models/audio_file_api_test.exs new file mode 100644 index 0000000..028befa --- /dev/null +++ b/test/models/audio_file_api_test.exs @@ -0,0 +1,18 @@ +defmodule TheTranscriberBackend.AudioFileAPITest do + use TheTranscriberBackend.ModelCase + + alias TheTranscriberBackend.AudioFileAPI + + @valid_attrs %{} + @invalid_attrs %{} + + test "changeset with valid attributes" do + changeset = AudioFileAPI.changeset(%AudioFileAPI{}, @valid_attrs) + assert changeset.valid? + end + + test "changeset with invalid attributes" do + changeset = AudioFileAPI.changeset(%AudioFileAPI{}, @invalid_attrs) + refute changeset.valid? + end +end |