Files
fizzy/test/controllers/boards/involvements_controller_test.rb
T
2025-11-05 13:41:12 +01:00

19 lines
461 B
Ruby

require "test_helper"
class Boards::InvolvementsControllerTest < ActionDispatch::IntegrationTest
setup do
sign_in_as :kevin
end
test "update" do
board = boards(:writebook)
board.access_for(users(:kevin)).access_only!
assert_changes -> { board.access_for(users(:kevin)).involvement }, from: "access_only", to: "watching" do
put board_involvement_path(board, involvement: "watching")
end
assert_response :success
end
end