Spike events system
This commit is contained in:
@@ -1,7 +1,15 @@
|
||||
require "test_helper"
|
||||
|
||||
class BoostsControllerTest < ActionDispatch::IntegrationTest
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
setup do
|
||||
sign_in_as :kevin
|
||||
end
|
||||
|
||||
test "create" do
|
||||
assert_difference "bubbles(:logo).reload.boost_count", +1 do
|
||||
post bucket_bubble_boosts_url(buckets(:writebook), bubbles(:logo), format: :turbo_stream)
|
||||
end
|
||||
|
||||
assert_turbo_stream action: :update, target: dom_id(bubbles(:logo), :boosts)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user