class BranchWithImplicitFromRequirementMatcherTest
Public Instance Methods
setup()
click to toggle source
# File test/unit/branch_test.rb, line 568 def setup @matcher = StateMachine::BlacklistMatcher.new(:parked) @branch = StateMachine::Branch.new(@matcher => :idling) end
test_should_convert_to_to_whitelist_matcher()
click to toggle source
# File test/unit/branch_test.rb, line 577 def test_should_convert_to_to_whitelist_matcher assert_instance_of StateMachine::WhitelistMatcher, @branch.state_requirements.first[:to] end
test_should_not_convert_from_to_whitelist_matcher()
click to toggle source
# File test/unit/branch_test.rb, line 573 def test_should_not_convert_from_to_whitelist_matcher assert_equal @matcher, @branch.state_requirements.first[:from] end