Sha256: 82957760cdcc7507993fc51fb761137a50997bfd149d9079e4bae386a63ff816
Contents?: true
Size: 657 Bytes
Versions: 2
Compression:
Stored size: 657 Bytes
Contents
require 'spec_helper' require 'scm/git' describe Git do describe "create" do it "should create the directory, if it does not exist" do repo = Git.create(directory('create_new_git_repo')) repo.path.should be_directory end it "should create a git repository" do repo = Git.create(mkdir('init_git_repo')) repo.path.join('.git').should be_directory end it "should allow creating a bare git repository" do repo = Git.create(mkdir('init_bare_git_repo')) repo.path.entries.map(&:to_s).should be =~ %w[ branches config description HEAD hooks info objects refs ] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
scm-0.1.0.pre2 | spec/git_spec.rb |
scm-0.1.0.pre1 | spec/git_spec.rb |