Sha256: b461d2649125dcb511bc2838a1b1635ffd1da8ed295722722c9f412c6c7d7557
Contents?: true
Size: 419 Bytes
Versions: 14
Compression:
Stored size: 419 Bytes
Contents
require_relative '../../test_helper' class BranchWithMultipleExceptOnRequirementsTest < StateMachinesTest def setup @object = Object.new @branch = StateMachines::Branch.new(except_on: [:ignite, :park]) end def test_should_match_if_not_included assert @branch.matches?(@object, on: :shift_up) end def test_should_not_match_if_included refute @branch.matches?(@object, on: :ignite) end end
Version data entries
14 entries across 14 versions & 2 rubygems