module RSpec::Expectations::WhenExpectationExtensions

DSL extension to expectation target allowing optional expectations

Public Instance Methods

when(expected) click to toggle source
# File lib/rspec/expectations/when_expectation_extensions.rb, line 5
def when(expected)
  WhenExpectationTarget.new @target, expected
end