Sha256: 199ff3152d4149c97812dff4d0740c00b54a61604982aa8cdf9029a733de4d2f
Contents?: true
Size: 396 Bytes
Versions: 30
Compression:
Stored size: 396 Bytes
Contents
module SpecSupport class Block def to_proc lambda { |*args| call(*args) } end # the call method must be provided by in specs # E.g. using `expect(mock_block_instance).to receive(:call)` to assert that the "block" gets called def call raise NotImplementedError, "Expecting `call` method to have an expectation defined to assert." end end end
Version data entries
30 entries across 30 versions & 1 rubygems