Add test for readings controller
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
require "test_helper"
|
||||
|
||||
class ReadingsControllerTest < ActionDispatch::IntegrationTest
|
||||
setup do
|
||||
sign_in_as :kevin
|
||||
end
|
||||
|
||||
test "index" do
|
||||
assert_changes -> { notifications(:logo_created_kevin).reload.read? }, from: false, to: true do
|
||||
post bucket_bubble_readings_url(bubbles(:logo).bucket, bubbles(:logo)), as: :turbo_stream
|
||||
end
|
||||
|
||||
assert_response :success
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user