Files
fizzy/test/controllers/cards/publishes_controller_test.rb
T
2025-04-09 14:50:58 +02:00

19 lines
355 B
Ruby

require "test_helper"
class Cards::PublishesControllerTest < ActionDispatch::IntegrationTest
setup do
sign_in_as :kevin
end
test "create" do
card = cards(:logo)
card.drafted!
assert_changes -> { card.reload.published? }, from: false, to: true do
post card_publish_path(card)
end
assert_redirected_to card
end
end