Sha256: af2b521ecb4de1e4517b8972cdef7f5d84ea7a5dc1b1a59766ebfbdb6015962a

Contents?: true

Size: 515 Bytes

Versions: 12

Compression:

Stored size: 515 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe LB::Persistence, '#repository' do
  include_context 'settings'

  subject { object.repository(repository) }

  let(:object) { described_class.new(settings) }

  let(:repository) { class_double('repository', new: repository_instance) }
  let(:repository_instance) { double('repository instance') }

  it 'should return container' do
    expect(repository).to receive(:new).with(object.container)
    expect(subject).to be(repository_instance)
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
lb-persistence-0.3.0 spec/unit/lb/persistence/repository_spec.rb
lb-persistence-0.2.0 spec/unit/lb/persistence/repository_spec.rb
lb-persistence-0.1.0 spec/unit/lb/persistence/repository_spec.rb
lb-persistence-0.0.9 spec/unit/lb/persistence/repository_spec.rb
lb-persistence-0.0.8 spec/unit/lb/persistence/repository_spec.rb
lb-persistence-0.0.7 spec/unit/lb/persistence/repository_spec.rb
lb-persistence-0.0.6 spec/unit/lb/persistence/repository_spec.rb
lb-persistence-0.0.5 spec/unit/lb/persistence/repository_spec.rb
lb-persistence-0.0.4 spec/unit/lb/persistence/repository_spec.rb
lb-persistence-0.0.3 spec/unit/lb/persistence/repository_spec.rb
lb-persistence-0.0.2 spec/unit/lb/persistence/repository_spec.rb
lb-persistence-0.0.1 spec/unit/lb/persistence/repository_spec.rb