Files
fizzy/test/controllers/webhooks/activations_controller_test.rb
T
2025-09-16 20:04:20 +02:00

20 lines
410 B
Ruby

require "test_helper"
class Webhooks::ActivationsControllerTest < ActionDispatch::IntegrationTest
setup do
sign_in_as :kevin
end
test "create" do
webhook = webhooks(:inactive)
assert_not webhook.active?
assert_changes -> { webhook.reload.active? }, from: false, to: true do
post webhook_activation_path(webhook)
end
assert_redirected_to webhook_path(webhook)
end
end