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.
81 82 83 |
# File 'lib/flexmock/core_class_methods.rb', line 81 def initialize @got_exception = false end |
Instance Attribute Details
#got_exception ⇒ Object
Returns the value of attribute got_exception.
79 80 81 |
# File 'lib/flexmock/core_class_methods.rb', line 79 def got_exception @got_exception end |
Instance Method Details
#passed? ⇒ Boolean
85 86 87 |
# File 'lib/flexmock/core_class_methods.rb', line 85 def passed? ! got_exception end |