Sha256: c3ce179f92fbc62474bc90b14400ae131f0dbcb6172251c23623d6c69e705aa9

Contents?: true

Size: 761 Bytes

Versions: 12

Compression:

Stored size: 761 Bytes

Contents

require 'spec_helper'

describe Heidi::Git do
  let(:git) { Heidi::Git.new() }

  it "should can find the HEAD" do
    git.commit.should_not be_empty
    git.commit.should == git.HEAD
  end

  it "should list all branches" do
    git.branches.should be_kind_of(Array)
  end

  it "should list the current branch" do
    git.branch.should_not be_empty
    git.branch.should_not =~ /^\*/
  end

  it "should list the tags" do
    git.tags.should be_kind_of(Array)
  end

  describe "config" do
    let(:random) { "#{rand(1000)}.#{rand(1000)}" }

    it "should write configs" do
      git["test.entry"].should_not == random
      git["test.entry"] = random
    end

    it "should read configs" do
      git["test.entry"].should_not == be_empty
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
heidi-0.4.0 spec/heidi/git_spec.rb
heidi-0.3.1 spec/heidi/git_spec.rb
heidi-0.3.0 spec/heidi/git_spec.rb
heidi-0.2.1 spec/heidi/git_spec.rb
heidi-0.2.0 spec/heidi/git_spec.rb
heidi-0.1.2 spec/heidi/git_spec.rb
heidi-0.1.1 spec/heidi/git_spec.rb
heidi-0.1.0 spec/heidi/git_spec.rb
heidi-0.0.4 spec/heidi/git_spec.rb
heidi-0.0.3 spec/heidi/git_spec.rb
heidi-0.0.2 spec/heidi/git_spec.rb
heidi-0.0.1 spec/heidi/git_spec.rb