class RSpec::Matchers::BuiltIn::YieldControl

def set_expected_yields_count(relativity, n)

def set_expected_yields_count(relativity, n)
  @expectation_type = relativity
  @expected_yields_count = case n
                           when Numeric then n
                           when :once then 1
                           when :twice then 2
                           end
end