Sha256: 210f2e8c207546e06a293d104f5237fa6621518c108a8c1529e55c53ad3272b6

Contents?: true

Size: 628 Bytes

Versions: 188

Compression:

Stored size: 628 Bytes

Contents

describe KnapsackPro::RepositoryAdapters::EnvAdapter do
  it { should be_kind_of KnapsackPro::RepositoryAdapters::BaseAdapter }

  describe '#commit_hash' do
    let(:commit_hash) { double }

    subject { described_class.new.commit_hash }

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

    it { should eq commit_hash }
  end

  describe '#branch' do
    let(:branch) { double }

    subject { described_class.new.branch }

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

    it { should eq branch }
  end
end

Version data entries

188 entries across 188 versions & 1 rubygems

Version Path
knapsack_pro-0.56.0 spec/knapsack_pro/repository_adapters/env_adapter_spec.rb
knapsack_pro-0.55.2 spec/knapsack_pro/repository_adapters/env_adapter_spec.rb
knapsack_pro-0.55.1 spec/knapsack_pro/repository_adapters/env_adapter_spec.rb
knapsack_pro-0.55.0 spec/knapsack_pro/repository_adapters/env_adapter_spec.rb
knapsack_pro-0.54.0 spec/knapsack_pro/repository_adapters/env_adapter_spec.rb
knapsack_pro-0.53.0 spec/knapsack_pro/repository_adapters/env_adapter_spec.rb
knapsack_pro-0.52.0 spec/knapsack_pro/repository_adapters/env_adapter_spec.rb
knapsack_pro-0.51.0 spec/knapsack_pro/repository_adapters/env_adapter_spec.rb
knapsack_pro-0.50.1 spec/knapsack_pro/repository_adapters/env_adapter_spec.rb
knapsack_pro-0.50.0 spec/knapsack_pro/repository_adapters/env_adapter_spec.rb
knapsack_pro-0.49.0 spec/knapsack_pro/repository_adapters/env_adapter_spec.rb
knapsack_pro-0.48.0 spec/knapsack_pro/repository_adapters/env_adapter_spec.rb
knapsack_pro-0.47.0 spec/knapsack_pro/repository_adapters/env_adapter_spec.rb
knapsack_pro-0.46.0 spec/knapsack_pro/repository_adapters/env_adapter_spec.rb
knapsack_pro-0.45.0 spec/knapsack_pro/repository_adapters/env_adapter_spec.rb
knapsack_pro-0.44.0 spec/knapsack_pro/repository_adapters/env_adapter_spec.rb
knapsack_pro-0.43.0 spec/knapsack_pro/repository_adapters/env_adapter_spec.rb
knapsack_pro-0.42.0 spec/knapsack_pro/repository_adapters/env_adapter_spec.rb
knapsack_pro-0.41.0 spec/knapsack_pro/repository_adapters/env_adapter_spec.rb
knapsack_pro-0.40.0 spec/knapsack_pro/repository_adapters/env_adapter_spec.rb