Sha256: 6ac8cabcccc0b1e0f7dde4e10f3ea4c5253bca990f82c0451167f7d9660419b6
Contents?: true
Size: 408 Bytes
Versions: 14
Compression:
Stored size: 408 Bytes
Contents
require_relative '../../test_helper' class CallbackWithMethodArgumentTest < StateMachinesTest def setup @callback = StateMachines::Callback.new(:before, 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