class BranchWithImplicitToRequirementMatcherTest
Public Instance Methods
setup()
click to toggle source
# File test/unit/branch_test.rb, line 583 def setup @matcher = StateMachine::BlacklistMatcher.new(:idling) @branch = StateMachine::Branch.new(:parked => @matcher) end
test_should_convert_from_to_whitelist_matcher()
click to toggle source
# File test/unit/branch_test.rb, line 588 def test_should_convert_from_to_whitelist_matcher assert_instance_of StateMachine::WhitelistMatcher, @branch.state_requirements.first[:from] end
test_should_not_convert_to_to_whitelist_matcher()
click to toggle source
# File test/unit/branch_test.rb, line 592 def test_should_not_convert_to_to_whitelist_matcher assert_equal @matcher, @branch.state_requirements.first[:to] end