Sha256: 47b7ae6fbcffa67535fa56c6eaefd896ce80e496c8e5458f40b505010e81b473

Contents?: true

Size: 437 Bytes

Versions: 6

Compression:

Stored size: 437 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)
      stubber.unstub_const
      stubber.unstub_const
    end

    it 'allows calling unstub_const without stub_const' do
      stubber = described_class.new('Foo')
      stubber.unstub_const
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
with_model-2.1.6 spec/constant_stubber_spec.rb
with_model-2.1.5 spec/constant_stubber_spec.rb
with_model-2.1.4 spec/constant_stubber_spec.rb
with_model-2.1.3 spec/constant_stubber_spec.rb
with_model-2.1.2 spec/constant_stubber_spec.rb
with_model-2.1.1 spec/constant_stubber_spec.rb