Sha256: 6713201660b554724de841901adb8ba885769228e1272293977b4099b8cd442c

Contents?: true

Size: 497 Bytes

Versions: 9

Compression:

Stored size: 497 Bytes

Contents

require File.dirname(__FILE__) + '/helper'

class TestCommitWrite < Test::Unit::TestCase
  def setup
    @r = Repo.new(GRIT_REPO)
  end

  def test_commit
    Git.any_instance.expects(:commit).returns(fixture('commit'))
    results = @r.commit_index('my message')
    assert_match /Created commit/, results
  end

  def test_commit_all
    Git.any_instance.expects(:commit).returns(fixture('commit'))
    results = @r.commit_all('my message')
    assert_match /Created commit/, results
  end

end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
madrox-0.2.0 vendor/grit/test/test_commit_write.rb
madrox-0.1.1 vendor/grit/test/test_commit_write.rb
madrox-0.1.0 vendor/grit/test/test_commit_write.rb
ginst-2009.12.8 vendor/plugins/grit/test/test_commit_write.rb
ginst-2009.11.24 vendor/plugins/grit/test/test_commit_write.rb
ginst-2009.11.23 vendor/plugins/grit/test/test_commit_write.rb
ginst-2.0.1 vendor/plugins/grit/test/test_commit_write.rb
ginst-2.0.0 vendor/plugins/grit/test/test_commit_write.rb
grit-2.0.0 test/test_commit_write.rb