Class: Fix::Expect

Inherits:
Spectus::ExpectationTarget show all
Defined in:
lib/fix/it.rb

Overview

Wraps the target of a Spectus expectation.

Instance Method Summary collapse

Constructor Details

#initialize(callable) ⇒ Expect

Create a new expection target

rubocop:disable Lint/MissingSuper

Parameters:

  • callable (#call)

    The object to test.



15
16
17
# File 'lib/fix/it.rb', line 15

def initialize(callable)
  @callable = callable
end