Skip to content

Commit 6a1295a

Browse files
committed
test: Fix tests by adding required scope parameter.
1 parent 234369f commit 6a1295a

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

test/support/factory.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ defmodule Zout.Factory do
99
%Zout.Data.Project{
1010
name: sequence("name"),
1111
slug: sequence("slug", fn n -> ZoutWeb.Cldr.Number.to_string!(n, format: :spellout) end),
12+
scope: :public,
1213
checker: :http_ok,
1314
deleted: false,
1415
params: %{"url" => "https://zeus.ugent.be"},

test/zout/data_test.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ defmodule Zout.DataTest do
5252
test "with valid data creates a project" do
5353
valid_attrs = %{
5454
"name" => "hallo",
55+
"scope" => "public",
5556
"checker" => "hydra_api"
5657
}
5758

test/zout_web/controllers/project_controller_test.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ defmodule ZoutWeb.ProjectControllerTest do
4343

4444
valid_attrs = %{
4545
"name" => "hallo",
46+
"scope" => "public",
4647
"checker" => "hydra_api"
4748
}
4849

0 commit comments

Comments
 (0)