Sha256: bc7dea18fa23a4f1364745b5fce1ca95a3864e1ef1707a00c9dfd30fabcef963
Contents?: true
Size: 451 Bytes
Versions: 14
Compression:
Stored size: 451 Bytes
Contents
require_relative '../../test_helper' require_relative 'transition_collection_with_action_hook_base_test' class TransitionCollectionWithActionHookAndBlockTest < TransitionCollectionWithActionHookBaseTest def setup super @result = StateMachines::TransitionCollection.new([@transition]).perform { true } end def test_should_succeed assert_equal true, @result end def test_should_not_run_action refute @object.saved end end
Version data entries
14 entries across 14 versions & 2 rubygems