Class: FlexMock::UseContainer

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#initializeUseContainer

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_exceptionObject

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

Returns:

  • (Boolean)


79
80
81
# File 'lib/gems/flexmock-0.8.3/lib/flexmock/core_class_methods.rb', line 79

def passed?
  ! got_exception
end