Sha256: 25f5a49f7cb9a3e8fc27fa815704eb03126f4b3c0f4a701a8aa2f3174d8021a6
Contents?: true
Size: 482 Bytes
Versions: 1
Compression:
Stored size: 482 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' module WithModel describe ConstantStubber do it 'allows calling unstub_const multiple times' do stubber = described_class.new('Foo') stubber.stub_const(1) expect { 2.times { stubber.unstub_const } }.not_to raise_error end it 'allows calling unstub_const without stub_const' do stubber = described_class.new('Foo') expect { stubber.unstub_const }.not_to raise_error end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
with_model-2.1.7 | spec/constant_stubber_spec.rb |