Sha256: 5ef7f7571ef0500beb8dfa355a02fce3ab61b1dfc0bc4d29b122796924ffca45
Contents?: true
Size: 428 Bytes
Versions: 10
Compression:
Stored size: 428 Bytes
Contents
require 'spec_helper' describe Bogus::ResetsStubbedMethods do let(:double_tracker) { stub } let(:overwrites_methods) { stub } let(:resets_stubbed_methods) { isolate(Bogus::ResetsStubbedMethods) } it "resets all stubbed objects back to previous implementation" do foo = stub stub(double_tracker).doubles { [foo] } mock(overwrites_methods).reset(foo) resets_stubbed_methods.reset_all_doubles end end
Version data entries
10 entries across 10 versions & 1 rubygems