Sha256: 64f89c1f4cb900058b74551b5c6de0c7dbc430d66ccb45a04d1a7394843e9c2e
Contents?: true
Size: 667 Bytes
Versions: 9
Compression:
Stored size: 667 Bytes
Contents
require_relative '../../test_helper' class MachineWithNilActionTest < StateMachinesTest module Custom include StateMachines::Integrations::Base @defaults = {action: :save} end def setup StateMachines::Integrations.register(MachineWithNilActionTest::Custom) end def test_should_have_a_nil_action machine = StateMachines::Machine.new(Class.new, action: nil, integration: :custom) assert_nil machine.action end def test_should_have_default_action machine = StateMachines::Machine.new(Class.new, integration: :custom) assert_equal :save, machine.action end def teardown StateMachines::Integrations.reset end end
Version data entries
9 entries across 9 versions & 2 rubygems