aboutsummaryrefslogtreecommitdiff
path: root/test/models
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/models/audio_file_api_test.exs18
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