Sha256: 2b0e0611139211e150e324b08d2031eca0c363b3215d08e01c9932194b079487
Contents?: true
Size: 653 Bytes
Versions: 14
Compression:
Stored size: 653 Bytes
Contents
require_relative '../../test_helper' class LoopbackMatcherTest < StateMachinesTest def setup @matcher = StateMachines::LoopbackMatcher.instance end def test_should_have_no_values assert_equal [], @matcher.values end def test_should_filter_all_values assert_equal [], @matcher.filter([:parked, :idling]) end def test_should_match_if_from_context_is_same assert @matcher.matches?(:parked, from: :parked) end def test_should_not_match_if_from_context_is_different refute @matcher.matches?(:parked, from: :idling) end def test_should_have_a_description assert_equal 'same', @matcher.description end end
Version data entries
14 entries across 14 versions & 2 rubygems