Sha256: 95f4b2183e77dc1f314f72d9f05ac7345cfbdcad4ff28810f0fab52615008718
Contents?: true
Size: 356 Bytes
Versions: 4
Compression:
Stored size: 356 Bytes
Contents
# encoding: utf-8 require 'spec_helper' RSpec.describe FiniteMachine::EventsChain, '#clear' do it "clears chain events" do event = double(:event) events_chain = described_class.new events_chain.add(:validated, event) expect(events_chain.empty?).to be(false) events_chain.clear expect(events_chain.empty?).to be(true) end end
Version data entries
4 entries across 4 versions & 1 rubygems