Sha256: fb9fb3ddf52836959efa9bdef9730c7d2f7344f9734f2f401899d448dcbd67d3
Contents?: true
Size: 406 Bytes
Versions: 14
Compression:
Stored size: 406 Bytes
Contents
require_relative '../../test_helper' class CallbackWithDoMethodTest < StateMachinesTest def setup @callback = StateMachines::Callback.new(:before, do: lambda { |*args| @args = args }) @object = Object.new @result = @callback.call(@object) end def test_should_be_successful assert @result end def test_should_call_with_empty_context assert_equal [@object], @args end end
Version data entries
14 entries across 14 versions & 2 rubygems