Exception: ErgomentumRspec::Matchers::Yield::NoBlockGivenError
- Inherits:
-
StandardError
- Object
- StandardError
- ErgomentumRspec::Matchers::Yield::NoBlockGivenError
- Defined in:
- lib/ergomentum_rspec/matchers/yield/yield_all.rb
Instance Method Summary collapse
-
#initialize ⇒ NoBlockGivenError
constructor
A new instance of NoBlockGivenError.
Constructor Details
#initialize ⇒ NoBlockGivenError
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 |