Sha256: b8223f1b6a8b5c801d95dbc2892c4b3b02fe8f77107e440673f18811eadeaa75

Contents?: true

Size: 356 Bytes

Versions: 5

Compression:

Stored size: 356 Bytes

Contents

require 'assert'

require 'cap-util/git_branch'

module CapUtil

  class GitBranchTests < Assert::Context
    desc "the GitBranch util"
    subject { GitBranch }

    should have_imeth :current

    should "use the symbolic ref the HEAD is at for the current branch" do
      assert_equal "git symbolic-ref HEAD", subject.current(:cmd)
    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cap-util-1.1.0 test/git_branch_tests.rb
cap-util-1.0.1 test/git_branch_tests.rb
cap-util-1.0.0 test/git_branch_tests.rb
cap-util-1.0.0.rc1 test/git_branch_tests.rb
cap-util-0.4.0 test/git_branch_tests.rb