Sha256: 5781f8634819199233d1244775c675d56b43003b39f7e0a3f4fcf7ea898cbcab

Contents?: true

Size: 529 Bytes

Versions: 14

Compression:

Stored size: 529 Bytes

Contents

require 'spec_helper'
require 'r10k/git'

describe R10K::Git::Head do

  let(:ref) { 'git/branch' }
  let(:repo) { double('git repository') }
  subject { described_class.new(ref) }


  describe "determining if the head can be resolved" do
    it "is always false"
  end

  describe "determining if the head needs to be fetched" do
    it "is always true" do
      expect(subject.fetch?).to be_true
    end
  end

  it "can be converted to a string" do
    expect(subject.to_s).to eq ref
  end

  it_behaves_like "a git ref"
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
r10k-1.3.5 spec/unit/git/head_spec.rb
r10k-1.3.4 spec/unit/git/head_spec.rb
r10k-1.2.4 spec/unit/git/head_spec.rb
r10k-1.3.3 spec/unit/git/head_spec.rb
r10k-1.3.2 spec/unit/git/head_spec.rb
r10k-1.2.3 spec/unit/git/head_spec.rb
r10k-1.3.1 spec/unit/git/head_spec.rb
r10k-1.2.2 spec/unit/git/head_spec.rb
r10k-1.3.0 spec/unit/git/head_spec.rb
r10k-1.3.0rc1 spec/unit/git/head_spec.rb
r10k-1.2.1 spec/unit/git/head_spec.rb
r10k-1.2.0 spec/unit/git/head_spec.rb
r10k-1.2.0rc2 spec/unit/git/head_spec.rb
r10k-1.2.0rc1 spec/unit/git/head_spec.rb