Sha256: 039c5b1c4404a1c6f1f559a718889e53353c57ddf69257243bed356ec16a0b78
Contents?: true
Size: 441 Bytes
Versions: 14
Compression:
Stored size: 441 Bytes
Contents
require_relative '../../test_helper' class BranchWithOnMatcherRequirementTest < StateMachinesTest def setup @object = Object.new @branch = StateMachines::Branch.new(on: StateMachines::BlacklistMatcher.new([:ignite, :park])) end def test_should_match_if_included assert @branch.matches?(@object, on: :shift_up) end def test_should_not_match_if_not_included refute @branch.matches?(@object, on: :ignite) end end
Version data entries
14 entries across 14 versions & 2 rubygems