Commit 5d7f4f6f authored by Piotr Baj's avatar Piotr Baj 🏡

Fix test after adding price field to plans

parent 093d35c8
......@@ -6,9 +6,9 @@ defmodule Webapp.PlansTest do
describe "plans" do
alias Webapp.Plans.Plan
@valid_attrs %{cpu: 42, name: "some name", ram: 42, storage: 42}
@update_attrs %{cpu: 43, name: "some updated name", ram: 43, storage: 43}
@invalid_attrs %{cpu: nil, name: nil, ram: nil, storage: nil}
@valid_attrs %{cpu: 42, name: "some name", ram: 42, storage: 42, price: 10}
@update_attrs %{cpu: 43, name: "some updated name", ram: 43, storage: 43, price: 20}
@invalid_attrs %{cpu: nil, name: nil, ram: nil, storage: nil, price: nil}
def plan_fixture(attrs \\ %{}) do
{:ok, plan} =
......
......@@ -4,9 +4,9 @@ defmodule WebappWeb.PlanControllerTest do
import WebappWeb.AuthCase
alias Webapp.Plans
@create_attrs %{cpu: 42, name: "some name", ram: 42, storage: 42}
@update_attrs %{cpu: 43, name: "some updated name", ram: 43, storage: 43}
@invalid_attrs %{cpu: nil, name: nil, ram: nil, storage: nil}
@create_attrs %{cpu: 42, name: "some name", ram: 42, storage: 42, price: 10}
@update_attrs %{cpu: 43, name: "some updated name", ram: 43, storage: 43, price: 20}
@invalid_attrs %{cpu: nil, name: nil, ram: nil, storage: nil, price: nil}
setup do
conn = build_conn() |> bypass_through(WebappWeb.Router, [:browser]) |> get("/")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment