Exception: AssertType::TypeAssertionError

Inherits:
AssertionError show all
Defined in:
lib/assert_type/type_assertion_error.rb

Instance Attribute Summary

Attributes inherited from AssertionError

#actual, #expected

Instance Method Summary collapse

Methods inherited from AssertionError

#initialize

Constructor Details

This class inherits a constructor from AssertType::AssertionError

Instance Method Details

#messageObject



6
7
8
# File 'lib/assert_type/type_assertion_error.rb', line 6

def message
  "assertion failed - expected #{@expected} but was #{@actual.inspect}"
end