Sha256: f9719e8041a7c1059c2375d77b903f1cfd5b75d8133d59e17b7717a1e4f7f8fc
Contents?: true
Size: 528 Bytes
Versions: 14
Compression:
Stored size: 528 Bytes
Contents
require_relative '../../test_helper' class BranchWithImplicitToRequirementMatcherTest < StateMachinesTest def setup @matcher = StateMachines::BlacklistMatcher.new(:idling) @branch = StateMachines::Branch.new(parked: @matcher) end def test_should_convert_from_to_whitelist_matcher assert_instance_of StateMachines::WhitelistMatcher, @branch.state_requirements.first[:from] end def test_should_not_convert_to_to_whitelist_matcher assert_equal @matcher, @branch.state_requirements.first[:to] end end
Version data entries
14 entries across 14 versions & 2 rubygems