Class BareTest::Assertion::Context
In: lib/baretest/assertion/support.rb
lib/baretest/assertion/context.rb
Parent: Object

Serves as the exercise- and verify-container for Assertions. Upon Assertion#execute, a new Context is created, the setups, the assertions’ defining block and the teardowns instance evaled. Components will want to extend this class.

Methods

new  

Included Modules

::BareTest::Assertion::Support

External Aliases

__assertion__ -> assertion

Attributes

__assertion__  [R]  The Assertion instance this Context was created for

Public Class methods

Accepts the Assertion instance this Context is created for as first and only argument.

[Source]

    # File lib/baretest/assertion/context.rb, line 24
24:       def initialize(assertion)
25:         @__assertion__ = assertion
26:       end

[Validate]