Sha256: 01df265da6cbe2e685410cb20ab8140527b1cc17632ee06d9365c46fc0aba76c

Contents?: true

Size: 362 Bytes

Versions: 7

Compression:

Stored size: 362 Bytes

Contents

require 'helper'

describe Gitrb do
  before do
    FileUtils.rm_rf REPO_PATH
    Dir.mkdir REPO_PATH

    @repo = Gitrb::Repository.new(:path => REPO_PATH, :create => true, :bare => true)
  end

  it 'should save and load entries' do
    repo.root['a'] = Gitrb::Blob.new(:data => 'Hello')
    repo.commit

    repo.root['a'].data.should.equal 'Hello'
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gitrb-0.2.8 test/bare_repository_test.rb
gitrb-0.2.7 test/bare_repository_test.rb
gitrb-0.2.6 test/bare_repository_test.rb
gitrb-0.2.5 test/bare_repository_test.rb
gitrb-0.2.4 test/bare_repository_test.rb
gitrb-0.2.3 test/bare_repository_test.rb
gitrb-0.2.2 test/bare_repository_test.rb