Sha256: 693b85c158774bd033bbbdfb1610a8fcdfd863a2e018f46d665de8d6abca75c2
Contents?: true
Size: 367 Bytes
Versions: 14
Compression:
Stored size: 367 Bytes
Contents
require_relative '../../test_helper' class BranchWithExceptToMatcherRequirementTest < StateMachinesTest def test_should_raise_an_exception exception = assert_raises(ArgumentError) { StateMachines::Branch.new(except_to: StateMachines::AllMatcher.instance) } assert_equal ':except_to option cannot use matchers; use :to instead', exception.message end end
Version data entries
14 entries across 14 versions & 2 rubygems