Files
fizzy/test/models/bubble/poppable_test.rb
T
2024-10-23 18:32:27 -06:00

17 lines
349 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?
bubbles(:logo).pop!
assert bubbles(:logo).popped?
end
end