Class: Bogus::TracksExistenceOfTestDoubles

Inherits:
Object
  • Object
show all
Defined in:
lib/bogus/stubbing/tracks_existence_of_test_doubles.rb

Instance Method Summary collapse

Instance Method Details

#doublesObject



7
8
9
# File 'lib/bogus/stubbing/tracks_existence_of_test_doubles.rb', line 7

def doubles
  @doubles ||= []
end

#track(object) ⇒ Object



3
4
5
# File 'lib/bogus/stubbing/tracks_existence_of_test_doubles.rb', line 3

def track(object)
  doubles << object unless doubles.include?(object)
end