Sha256: 1c82bcf9733226f81a04f0f10b94519c0964fa6e9b66fab963e5ed68984f869b

Contents?: true

Size: 341 Bytes

Versions: 67

Compression:

Stored size: 341 Bytes

Contents

require 'spec_helper'

describe Dockly::AWS do
  subject { Dockly::AWS }

  describe '#reset_cache!' do
    before do
      subject.instance_variable_set(:@s3, double)
    end

    it 'sets @s3 to nil' do
      expect { subject.reset_cache! }
          .to change { subject.instance_variable_get(:@s3) }
          .to(nil)
    end
  end
end

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
dockly-2.7.2 spec/dockly/aws_spec.rb
dockly-2.7.1 spec/dockly/aws_spec.rb
dockly-2.7.0 spec/dockly/aws_spec.rb
dockly-1.13.0 spec/dockly/aws_spec.rb
dockly-2.6.0 spec/dockly/aws_spec.rb
dockly-1.12.3 spec/dockly/aws_spec.rb
dockly-2.5.3 spec/dockly/aws_spec.rb
dockly-1.12.2 spec/dockly/aws_spec.rb
dockly-2.5.2 spec/dockly/aws_spec.rb
dockly-1.12.1 spec/dockly/aws_spec.rb
dockly-2.5.1 spec/dockly/aws_spec.rb
dockly-1.12.0 spec/dockly/aws_spec.rb
dockly-2.5.0 spec/dockly/aws_spec.rb
dockly-1.11.0 spec/dockly/aws_spec.rb
dockly-2.4.0 spec/dockly/aws_spec.rb
dockly-2.3.0 spec/dockly/aws_spec.rb
dockly-1.10.0 spec/dockly/aws_spec.rb
dockly-1.9.0 spec/dockly/aws_spec.rb
dockly-1.8.0 spec/dockly/aws_spec.rb
dockly-2.2.0 spec/dockly/aws_spec.rb