Sha256: fc3a5428e0e77c13841fdab9bd1c6dcc7fc1298f9c9f56d696f932ce3caa1853
Contents?: true
Size: 366 Bytes
Versions: 14
Compression:
Stored size: 366 Bytes
Contents
require_relative '../../test_helper' class CallbackWithoutArgumentsTest < StateMachinesTest def setup @callback = StateMachines::Callback.new(:before, do: lambda { |object| @arg = object }) @object = Object.new @callback.call(@object, {}, 1, 2, 3) end def test_should_call_method_with_object_as_argument assert_equal @object, @arg end end
Version data entries
14 entries across 14 versions & 2 rubygems