Sha256: 06a79dcb64055554338dc5bccd0a43bd2af0e7da3579c96a17ad5770f8d7c3ff

Contents?: true

Size: 562 Bytes

Versions: 26

Compression:

Stored size: 562 Bytes

Contents

require "spec_helper"

describe Alephant::Broker::LoadStrategy::S3::Archived do
  subject { described_class.new }

  describe "#s3_path" do
    let(:id) { 42 }
    let(:component_meta) { double(:id => id) }

    specify do
      expect(subject.s3_path component_meta).to eq id
    end

    context "no location associated with component meta" do
      let(:component_meta) { double(:id => nil) }

      specify do
        expect do
          subject.s3_path component_meta
        end.to raise_error Alephant::Broker::InvalidCacheKey
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
alephant-broker-3.13.0 spec/archive_spec.rb
alephant-broker-3.12.0 spec/archive_spec.rb
alephant-broker-3.11.0 spec/archive_spec.rb
alephant-broker-3.10.2 spec/archive_spec.rb
alephant-broker-3.10.1 spec/archive_spec.rb
alephant-broker-3.10.0 spec/archive_spec.rb
alephant-broker-3.9.2 spec/archive_spec.rb
alephant-broker-3.9.1 spec/archive_spec.rb
alephant-broker-3.9.0 spec/archive_spec.rb
alephant-broker-3.8.0 spec/archive_spec.rb
alephant-broker-3.7.1 spec/archive_spec.rb
alephant-broker-3.7.0 spec/archive_spec.rb
alephant-broker-3.6.1 spec/archive_spec.rb
alephant-broker-3.6.0 spec/archive_spec.rb
alephant-broker-3.5.5 spec/archive_spec.rb
alephant-broker-3.5.4 spec/archive_spec.rb
alephant-broker-3.5.3 spec/archive_spec.rb
alephant-broker-3.5.2 spec/archive_spec.rb
alephant-broker-3.5.1 spec/archive_spec.rb
alephant-broker-3.5.0 spec/archive_spec.rb