Sha256: eb78e55466a8f6e0bab783833eb957a8a1ffbf14837818383ab6fc9a11dcbdda

Contents?: true

Size: 601 Bytes

Versions: 188

Compression:

Stored size: 601 Bytes

Contents

describe KnapsackPro::RepositoryAdapterInitiator do
  describe '.call' do
    subject { described_class.call }

    before do
      expect(KnapsackPro::Config::Env).to receive(:repository_adapter).and_return(repository_adapter)
    end

    context 'when repository adapter is git' do
      let(:repository_adapter) { 'git' }

      it { should be_instance_of KnapsackPro::RepositoryAdapters::GitAdapter }
    end

    context 'when default repository adapter' do
      let(:repository_adapter) { nil }

      it { should be_instance_of KnapsackPro::RepositoryAdapters::EnvAdapter }
    end
  end
end

Version data entries

188 entries across 188 versions & 1 rubygems

Version Path
knapsack_pro-2.18.1 spec/knapsack_pro/repository_adapter_initiator_spec.rb
knapsack_pro-2.18.0 spec/knapsack_pro/repository_adapter_initiator_spec.rb
knapsack_pro-2.17.0 spec/knapsack_pro/repository_adapter_initiator_spec.rb
knapsack_pro-2.16.0 spec/knapsack_pro/repository_adapter_initiator_spec.rb
knapsack_pro-2.15.0 spec/knapsack_pro/repository_adapter_initiator_spec.rb
knapsack_pro-2.14.0 spec/knapsack_pro/repository_adapter_initiator_spec.rb
knapsack_pro-2.13.0 spec/knapsack_pro/repository_adapter_initiator_spec.rb
knapsack_pro-2.12.0 spec/knapsack_pro/repository_adapter_initiator_spec.rb
knapsack_pro-2.11.0 spec/knapsack_pro/repository_adapter_initiator_spec.rb
knapsack_pro-2.10.1 spec/knapsack_pro/repository_adapter_initiator_spec.rb
knapsack_pro-2.10.0 spec/knapsack_pro/repository_adapter_initiator_spec.rb
knapsack_pro-2.9.0 spec/knapsack_pro/repository_adapter_initiator_spec.rb
knapsack_pro-2.8.0 spec/knapsack_pro/repository_adapter_initiator_spec.rb
knapsack_pro-2.7.0 spec/knapsack_pro/repository_adapter_initiator_spec.rb
knapsack_pro-2.6.0 spec/knapsack_pro/repository_adapter_initiator_spec.rb
knapsack_pro-2.5.0 spec/knapsack_pro/repository_adapter_initiator_spec.rb
knapsack_pro-2.4.0 spec/knapsack_pro/repository_adapter_initiator_spec.rb
knapsack_pro-2.3.0 spec/knapsack_pro/repository_adapter_initiator_spec.rb
knapsack_pro-2.2.1 spec/knapsack_pro/repository_adapter_initiator_spec.rb
knapsack_pro-2.2.0 spec/knapsack_pro/repository_adapter_initiator_spec.rb