Class: FlexMock::UseContainer
- Includes:
- MockContainer
- Defined in:
- lib/gems/flexmock-0.8.3/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_remember, #flexmock_teardown, #flexmock_verify, #rails_version, #should_render_view
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.
75 76 77 |
# File 'lib/gems/flexmock-0.8.3/lib/flexmock/core_class_methods.rb', line 75 def initialize @got_exception = false end |
Instance Attribute Details
#got_exception ⇒ Object
Returns the value of attribute got_exception.
73 74 75 |
# File 'lib/gems/flexmock-0.8.3/lib/flexmock/core_class_methods.rb', line 73 def got_exception @got_exception end |
Instance Method Details
#passed? ⇒ Boolean
79 80 81 |
# File 'lib/gems/flexmock-0.8.3/lib/flexmock/core_class_methods.rb', line 79 def passed? ! got_exception end |