Files
fizzy/test/models/bubble/poppable_test.rb
T
2024-10-03 12:54:13 +01:00

17 lines
353 B
Ruby

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