Class: Bogus::TracksExistenceOfTestDoubles
- Inherits:
-
Object
- Object
- Bogus::TracksExistenceOfTestDoubles
- Defined in:
- lib/bogus/stubbing/tracks_existence_of_test_doubles.rb
Instance Method Summary collapse
Instance Method Details
#doubles ⇒ Object
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 |