Sha256: 9b1e6984f3c7234b4c4504e41adb51d76bbd4de469f5e3dd53ffe89836c5225f
Contents?: true
Size: 468 Bytes
Versions: 2
Compression:
Stored size: 468 Bytes
Contents
require 'spec_helper' describe Bogus::ResetsStubbedMethods do let(:double_tracker) { double } let(:overwrites_methods) { double } let(:resets_stubbed_methods) { isolate(Bogus::ResetsStubbedMethods) } it "resets all stubbed objects back to previous implementation" do foo = double allow(double_tracker).to receive(:doubles) { [foo] } expect(overwrites_methods).to receive(:reset).with(foo) resets_stubbed_methods.reset_all_doubles end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bogus-0.1.7 | spec/bogus/stubbing/resets_stubbed_methods_spec.rb |
bogus-0.1.6 | spec/bogus/stubbing/resets_stubbed_methods_spec.rb |