Class: Bogus::ResetsStubbedMethods

Inherits:
Object
  • Object
show all
Extended by:
Takes
Defined in:
lib/bogus/stubbing/resets_stubbed_methods.rb

Instance Method Summary collapse

Methods included from Takes

takes

Instance Method Details

#reset_all_doublesObject



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

def reset_all_doubles
  doubles = double_tracker.doubles
  doubles.each { |double| overwrites_methods.reset(double) }
end