Exception: ErgomentumRspec::Matchers::Yield::NoBlockGivenError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ergomentum_rspec/matchers/yield/yield_all.rb

Instance Method Summary collapse

Constructor Details

#initializeNoBlockGivenError

Returns a new instance of NoBlockGivenError.



11
12
13
# File 'lib/ergomentum_rspec/matchers/yield/yield_all.rb', line 11

def initialize
  super("Block required. E.g. expect { |b| [0].each(&b) }.to yield_all(0)")
end