class LoopbackMatcherTest
Public Instance Methods
setup()
click to toggle source
# File test/unit/matcher_test.rb, line 132 def setup @matcher = StateMachine::LoopbackMatcher.instance end
test_should_filter_all_values()
click to toggle source
# File test/unit/matcher_test.rb, line 140 def test_should_filter_all_values assert_equal [], @matcher.filter([:parked, :idling]) end
test_should_have_a_description()
click to toggle source
# File test/unit/matcher_test.rb, line 152 def test_should_have_a_description assert_equal 'same', @matcher.description end
test_should_have_no_values()
click to toggle source
# File test/unit/matcher_test.rb, line 136 def test_should_have_no_values assert_equal [], @matcher.values end
test_should_match_if_from_context_is_same()
click to toggle source
# File test/unit/matcher_test.rb, line 144 def test_should_match_if_from_context_is_same assert @matcher.matches?(:parked, :from => :parked) end
test_should_not_match_if_from_context_is_different()
click to toggle source
# File test/unit/matcher_test.rb, line 148 def test_should_not_match_if_from_context_is_different assert !@matcher.matches?(:parked, :from => :idling) end