Sha256: c6e31d986d6a71b52cf8a9aa7d3c717d1f2d16dd3989ebfd0946c64ebbe34dd7

Contents?: true

Size: 358 Bytes

Versions: 36

Compression:

Stored size: 358 Bytes

Contents

require_relative '../test_helper'

module OhlohScm::Adapters
  class HgPatchTest < OhlohScm::Test
    def test_patch_for_commit
      with_hg_repository('hg') do |repo|
        commit = repo.verbose_commit(1)
        data = File.read(File.join(DATA_DIR, 'hg_patch.diff'))
        assert_equal data, repo.patch_for_commit(commit)
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
ohloh_scm-2.2.13 test/unit/hg_patch_test.rb
ohloh_scm-2.2.12 test/unit/hg_patch_test.rb
ohloh_scm-2.2.11 test/unit/hg_patch_test.rb
ohloh_scm-2.2.10 test/unit/hg_patch_test.rb
ohloh_scm-2.2.9 test/unit/hg_patch_test.rb
ohloh_scm-2.2.8 test/unit/hg_patch_test.rb
ohloh_scm-2.2.7 test/unit/hg_patch_test.rb
ohloh_scm-2.2.6 test/unit/hg_patch_test.rb
ohloh_scm-2.2.5 test/unit/hg_patch_test.rb
ohloh_scm-2.2.4 test/unit/hg_patch_test.rb
ohloh_scm-2.2.3 test/unit/hg_patch_test.rb
ohloh_scm-2.2.2 test/unit/hg_patch_test.rb
ohloh_scm-2.2.1 test/unit/hg_patch_test.rb
ohloh_scm-2.2.0 test/unit/hg_patch_test.rb
ohloh_scm-2.1.0 test/unit/hg_patch_test.rb
ohloh_scm-2.0.1 test/unit/hg_patch_test.rb