Skip to content

Commit

Permalink
test(thread-controller): add test move board for move thread tests
Browse files Browse the repository at this point in the history
  • Loading branch information
akinsey committed Aug 15, 2024
1 parent c918564 commit 450d3c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/epochtalk_server_web/controllers/thread_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ defmodule Test.EpochtalkServerWeb.Controllers.Thread do
}
} do
board = insert(:board)
test_move_board = insert(:board)
admin_board = insert(:board, viewable_by: 1)
super_admin_board = insert(:board, viewable_by: 1, postable_by: 0)
category = insert(:category)
Expand All @@ -21,7 +22,8 @@ defmodule Test.EpochtalkServerWeb.Controllers.Thread do
[category: category, view_order: 0],
[board: board, category: category, view_order: 1],
[board: admin_board, category: category, view_order: 2],
[board: super_admin_board, category: category, view_order: 3]
[board: super_admin_board, category: category, view_order: 3],
[board: test_move_board, category: category, view_order: 4]
]
)

Expand All @@ -35,6 +37,7 @@ defmodule Test.EpochtalkServerWeb.Controllers.Thread do
{
:ok,
board: board,
test_move_board: test_move_board,
admin_board: admin_board,
super_admin_board: super_admin_board,
factory_threads: factory_threads,
Expand Down

0 comments on commit 450d3c4

Please sign in to comment.