Files
fizzy/test/controllers/public/cards_controller_test.rb
T
2025-11-05 13:31:54 +01:00

22 lines
498 B
Ruby

require "test_helper"
class Public::CardsControllerTest < ActionDispatch::IntegrationTest
setup do
sign_in_as :kevin
@board = boards(:writebook)
@card = cards(:logo)
@board.publish
end
test "show" do
get public_board_card_path(@board.publication.key, @card)
assert_response :success
end
test "not found if the board is not published" do
@board.unpublish
get public_board_card_path(@board.publication.key, @card)
assert_response :not_found
end
end