Class: FlexMock::UseContainer
- Includes:
- MockContainer
- Defined in:
- lib/flexmock/core_class_methods.rb
Overview
Container object to be used by the FlexMock.use method.
Instance Attribute Summary collapse
-
#got_exception ⇒ Object
Returns the value of attribute got_exception.
Instance Method Summary collapse
-
#initialize ⇒ UseContainer
constructor
A new instance of UseContainer.
- #passed? ⇒ Boolean
Methods included from MockContainer
#flexmock, #flexmock_close, #flexmock_created_mocks, #flexmock_remember, #flexmock_teardown, #flexmock_verify
Methods included from Ordering
#flexmock_allocate_order, #flexmock_current_order, #flexmock_current_order=, #flexmock_groups, #flexmock_validate_order
Constructor Details
#initialize ⇒ UseContainer
Returns a new instance of UseContainer.
118 119 120 |
# File 'lib/flexmock/core_class_methods.rb', line 118 def initialize @got_exception = false end |
Instance Attribute Details
#got_exception ⇒ Object
Returns the value of attribute got_exception.
116 117 118 |
# File 'lib/flexmock/core_class_methods.rb', line 116 def got_exception @got_exception end |
Instance Method Details
#passed? ⇒ Boolean
122 123 124 |
# File 'lib/flexmock/core_class_methods.rb', line 122 def passed? ! got_exception end |