Files
fizzy/test/controllers/notifications/bulk_readings_controller_test.rb
T
2025-09-10 09:17:57 +02:00

16 lines
431 B
Ruby

require "test_helper"
class Notifications::BulkReadingsControllerTest < ActionDispatch::IntegrationTest
setup do
sign_in_as :kevin
end
test "create" do
assert_changes -> { notifications(:logo_published_kevin).reload.read? }, from: false, to: true do
assert_changes -> { notifications(:layout_commented_kevin).reload.read? }, from: false, to: true do
post bulk_reading_path
end
end
end
end