Files
fizzy/test/models/bubble/poppable_test.rb
T
Kevin McConnell 66d0f29d45 Notify on pop as well
And DRY up some duplication.
2025-01-13 14:21:47 +00:00

19 lines
392 B
Ruby

require "test_helper"
class Bubble::PoppableTest < ActiveSupport::TestCase
test "popped scope" do
assert_equal [ bubbles(:shipping) ], Bubble.popped
assert_not_includes Bubble.active, bubbles(:shipping)
end
test "popping" do
assert_not bubbles(:logo).popped?
with_current_user(:kevin) do
bubbles(:logo).pop!
end
assert bubbles(:logo).popped?
end
end