Class: BareTest::Assertion::Context
- Inherits:
-
Object
- Object
- BareTest::Assertion::Context
- Includes:
- Support
- Defined in:
- lib/baretest/assertion/context.rb,
lib/baretest/assertion/support.rb
Overview
Support
Instance Attribute Summary collapse
-
#__assertion__ ⇒ Object
(also: #assertion)
readonly
The Assertion instance this Context was created for.
Instance Method Summary collapse
-
#initialize(assertion) ⇒ Context
constructor
Accepts the Assertion instance this Context is created for as first and only argument.
Methods included from Support
#case_equal, #equal_unordered, #extract_args, #failure, #failure_with_optional_message, #hash_key_equal, #instance_of, #kind_of, #not_touched, #order_equal, #raises, #raises_nothing, #respond_to, #same, #skip, #throws, #throws_nothing, #touch, #touched, #within_delta, #yields
Constructor Details
#initialize(assertion) ⇒ Context
Accepts the Assertion instance this Context is created for as first and only argument.
24 25 26 |
# File 'lib/baretest/assertion/context.rb', line 24 def initialize(assertion) @__assertion__ = assertion end |
Instance Attribute Details
#__assertion__ ⇒ Object (readonly) Also known as: assertion
The Assertion instance this Context was created for
19 20 21 |
# File 'lib/baretest/assertion/context.rb', line 19 def __assertion__ @__assertion__ end |