Class: BotAway::TestCase::MockObject
- Inherits:
-
Object
- Object
- BotAway::TestCase::MockObject
- Defined in:
- lib/bot-away/test_case/mock_object.rb
Instance Attribute Summary collapse
-
#method_name ⇒ Object
Returns the value of attribute method_name.
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize ⇒ MockObject
constructor
A new instance of MockObject.
-
#object_name ⇒ Object
for testing grouped_collection_select.
Constructor Details
#initialize ⇒ MockObject
Returns a new instance of MockObject.
13 14 15 |
# File 'lib/bot-away/test_case/mock_object.rb', line 13 def initialize @method_name = 'method_value' end |
Instance Attribute Details
#method_name ⇒ Object
Returns the value of attribute method_name.
2 3 4 |
# File 'lib/bot-away/test_case/mock_object.rb', line 2 def method_name @method_name end |
Instance Method Details
#id ⇒ Object
4 5 6 |
# File 'lib/bot-away/test_case/mock_object.rb', line 4 def id 1 end |
#object_name ⇒ Object
for testing grouped_collection_select
9 10 11 |
# File 'lib/bot-away/test_case/mock_object.rb', line 9 def object_name [self] end |