Class: Lookout::Expected::TrueClass

Inherits:
Object show all
Defined in:
lib/lookout-3.0/expected/trueclass.rb

Overview

Represents expected TrueClasses (of which ‘true` is the only instance).

Instance Method Summary collapse

Methods inherited from Object

#expect

Instance Method Details

#difference(actual) ⇒ Difference::Object

Returns A difference report between ACTUAL and #expected unless ACTUAL is truthful.

Parameters:

  • actual (Boolean)

Returns:

  • (Difference::Object)

    A difference report between ACTUAL and #expected unless ACTUAL is truthful



8
# File 'lib/lookout-3.0/expected/trueclass.rb', line 8

def difference(actual) super((not not actual)) end