Sha256: a5ef79f6926e106ab515b3b11005be278784613023850f465435ff23b270da28

Contents?: true

Size: 256 Bytes

Versions: 12

Compression:

Stored size: 256 Bytes

Contents

module Bogus
  class ResetsStubbedMethods
    extend Takes

    takes :double_tracker, :overwrites_methods

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
bogus-0.1.7 lib/bogus/stubbing/resets_stubbed_methods.rb
bogus-0.1.6 lib/bogus/stubbing/resets_stubbed_methods.rb
bogus-0.1.5 lib/bogus/stubbing/resets_stubbed_methods.rb
bogus-0.1.4 lib/bogus/stubbing/resets_stubbed_methods.rb
bogus-0.1.3 lib/bogus/resets_stubbed_methods.rb
bogus-0.1.2 lib/bogus/resets_stubbed_methods.rb
bogus-0.1.1 lib/bogus/resets_stubbed_methods.rb
bogus-0.1.0 lib/bogus/resets_stubbed_methods.rb
bogus-0.0.4 lib/bogus/resets_stubbed_methods.rb
bogus-0.0.3 lib/bogus/resets_stubbed_methods.rb
bogus-0.0.3.rc.2 lib/bogus/resets_stubbed_methods.rb
bogus-0.0.3.rc.1 lib/bogus/resets_stubbed_methods.rb