Sha256: a0a7eb3148c5dad895d0d5ccba62c24d26897a5de94c97c3cf3ea5711c48bbb8
Contents?: true
Size: 404 Bytes
Versions: 14
Compression:
Stored size: 404 Bytes
Contents
require_relative '../../test_helper' class CallbackWithBlockTest < StateMachinesTest def setup @callback = StateMachines::Callback.new(:before) do |*args| @args = args end @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