Module: RSpec::Expectations::WhenExpectationExtensions
- Defined in:
- lib/rspec/expectations/when_expectation_extensions.rb
Overview
DSL extension to expectation target allowing optional expectations
Instance Method Summary collapse
Instance Method Details
#when(expected) ⇒ Object
5 6 7 |
# File 'lib/rspec/expectations/when_expectation_extensions.rb', line 5 def when(expected) WhenExpectationTarget.new @target, expected end |