Sha256: 99e1aff19d4c0766825e06c0c195881a25ad9665db62f5e8259151632701b236
Contents?: true
Size: 469 Bytes
Versions: 14
Compression:
Stored size: 469 Bytes
Contents
require_relative '../../test_helper' class TransitionCollectionInvalidTest < StateMachinesTest def setup @transitions = StateMachines::TransitionCollection.new([false]) end def test_should_be_empty assert @transitions.empty? end def test_should_not_succeed assert_equal false, @transitions.perform end def test_should_not_run_perform_block ran_block = false @transitions.perform { ran_block = true } refute ran_block end end
Version data entries
14 entries across 14 versions & 2 rubygems