class TestTube::Base
Abstract class representing the state of an experiment.
@api private
Attributes
actual[R]
Expectation's actual value.
@return [#object_id] The actual value.
@api public
error[R]
Expectation's raised error.
@return [Exception, nil] The raised error.
@api public
got[R]
Expectation's returned boolean value.
@return [Boolean, nil] The returned boolean value.
@api public
Public Instance Methods
inspect()
click to toggle source
A string containing a human-readable representation of the experiment.
@return [String] The human-readable representation of the experiment.
@api public
# File lib/test_tube/base.rb, line 34 def inspect "<TestTube actual=#{actual.inspect} error=#{error.inspect} got=#{got.inspect}>" end
Also aliased as: to_s