Sha256: 223c5420a82cdac202a9a105f58f855a7eb4cbb2b3b7ecf95ac4171deac35c73

Contents?: true

Size: 583 Bytes

Versions: 26

Compression:

Stored size: 583 Bytes

Contents

describe KnapsackPro::BaseAllocatorBuilder do
  let(:adapter_class) { KnapsackPro::Adapters::BaseAdapter }
  let(:allocator_builder) { described_class.new(adapter_class) }

  describe '#allocator' do
    subject { allocator_builder.allocator }

    it do
      expect { subject }.to raise_error(NotImplementedError)
    end
  end

  describe '#test_dir' do
    subject { allocator_builder.test_dir }

    before do
      expect(KnapsackPro::TestFilePattern).to receive(:call).with(adapter_class).and_return('spec/**{,/*/**}/*_spec.rb')
    end

    it { should eq 'spec' }
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
knapsack_pro-0.42.0 spec/knapsack_pro/base_allocator_builder_spec.rb
knapsack_pro-0.41.0 spec/knapsack_pro/base_allocator_builder_spec.rb
knapsack_pro-0.40.0 spec/knapsack_pro/base_allocator_builder_spec.rb
knapsack_pro-0.39.0 spec/knapsack_pro/base_allocator_builder_spec.rb
knapsack_pro-0.38.0 spec/knapsack_pro/base_allocator_builder_spec.rb
knapsack_pro-0.37.0 spec/knapsack_pro/base_allocator_builder_spec.rb
knapsack_pro-0.36.0 spec/knapsack_pro/base_allocator_builder_spec.rb
knapsack_pro-0.35.0 spec/knapsack_pro/base_allocator_builder_spec.rb
knapsack_pro-0.34.0 spec/knapsack_pro/base_allocator_builder_spec.rb
knapsack_pro-0.33.0 spec/knapsack_pro/base_allocator_builder_spec.rb
knapsack_pro-0.32.0 spec/knapsack_pro/base_allocator_builder_spec.rb
knapsack_pro-0.31.0 spec/knapsack_pro/base_allocator_builder_spec.rb
knapsack_pro-0.30.0 spec/knapsack_pro/base_allocator_builder_spec.rb
knapsack_pro-0.29.0 spec/knapsack_pro/base_allocator_builder_spec.rb
knapsack_pro-0.28.1 spec/knapsack_pro/base_allocator_builder_spec.rb
knapsack_pro-0.28.0 spec/knapsack_pro/base_allocator_builder_spec.rb
knapsack_pro-0.27.0 spec/knapsack_pro/base_allocator_builder_spec.rb
knapsack_pro-0.26.0 spec/knapsack_pro/base_allocator_builder_spec.rb
knapsack_pro-0.25.0 spec/knapsack_pro/base_allocator_builder_spec.rb
knapsack_pro-0.24.0 spec/knapsack_pro/base_allocator_builder_spec.rb