Module: RSpec::Covers::ExpectHook

Defined in:
lib/rspec/covers/integration.rb

Instance Method Summary collapse

Instance Method Details

#expect(actual = ::RSpec::Expectations::ExpectationTarget::UndefinedValue, &block) ⇒ Object



45
46
47
48
49
50
51
# File 'lib/rspec/covers/integration.rb', line 45

def expect(actual = ::RSpec::Expectations::ExpectationTarget::UndefinedValue, &block)
  RSpec::Covers.record_expectation_actual(actual) unless actual.equal?(
    ::RSpec::Expectations::ExpectationTarget::UndefinedValue
  )

  super
end