Class: BotAway::TestCase::MockObject

Inherits:
Object
  • Object
show all
Defined in:
lib/bot-away/test_case/mock_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMockObject

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_nameObject

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

#idObject



4
5
6
# File 'lib/bot-away/test_case/mock_object.rb', line 4

def id
  1
end

#object_nameObject

for testing grouped_collection_select



9
10
11
# File 'lib/bot-away/test_case/mock_object.rb', line 9

def object_name
  [self]
end