Class: BareTest::Assertion::Context

Inherits:
Object
  • Object
show all
Includes:
Support
Defined in:
lib/baretest/assertion/context.rb,
lib/baretest/assertion/support.rb

Overview

Support

Instance Attribute Summary collapse

Instance Method Summary collapse

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