Initial commit: there's still tons of base Phoenix boilerplate to remove, but the...
[tech-radar-editor.git] / test / models / radar_data_point_test.exs
1 defmodule TechRadarEditor.RadarDataPointTest do
2 use TechRadarEditor.ModelCase
3
4 alias TechRadarEditor.RadarDataPoint
5
6 @valid_attrs %{cycle: 42, description: "some content", is_new: true, name: "some content", quadrant: 42}
7 @invalid_attrs %{}
8
9 test "changeset with valid attributes" do
10 changeset = RadarDataPoint.changeset(%RadarDataPoint{}, @valid_attrs)
11 assert changeset.valid?
12 end
13
14 test "changeset with invalid attributes" do
15 changeset = RadarDataPoint.changeset(%RadarDataPoint{}, @invalid_attrs)
16 refute changeset.valid?
17 end
18 end