class Fix::It
Wraps the target of a Fix
expectation.
Public Instance Methods
expect(object = nil, &block)
click to toggle source
Create a new expection target given an object.
@param object [#object_id] An object to test.
@return [Expect] An expect instance.
# File lib/fix/it.rb, line 28 def expect(object = nil, &block) if block ::Fix::Expect.new(block) else ::Fix::Expect.new(::Defi.send(:itself).to(object)) end end
is_expected()
click to toggle source
Create a new expection target given the subject.
@return [Expect] An expect instance.
rubocop:disable Naming/PredicateName
# File lib/fix/it.rb, line 41 def is_expected ::Fix::Expect.new(callable) end