Sha256: d37467b3a57d1bfe2d83f079a642b9d8fdf8dea0921660585b3521cc4fc08e2a
Contents?: true
Size: 777 Bytes
Versions: 14
Compression:
Stored size: 777 Bytes
Contents
require_relative '../../test_helper' class CallbackByDefaultTest < StateMachinesTest def setup @callback = StateMachines::Callback.new(:before) {} end def test_should_have_type assert_equal :before, @callback.type end def test_should_not_have_a_terminator assert_nil @callback.terminator end def test_should_have_a_branch_with_all_matcher_requirements assert_equal StateMachines::AllMatcher.instance, @callback.branch.event_requirement assert_equal StateMachines::AllMatcher.instance, @callback.branch.state_requirements.first[:from] assert_equal StateMachines::AllMatcher.instance, @callback.branch.state_requirements.first[:to] end def test_should_not_have_any_known_states assert_equal [], @callback.known_states end end
Version data entries
14 entries across 14 versions & 2 rubygems