Sha256: 2580450328b7dd40e200a31c5cadb3460c5c1684a1a188565299a520d7260c76

Contents?: true

Size: 403 Bytes

Versions: 36

Compression:

Stored size: 403 Bytes

Contents

require_relative '../test_helper'

module OhlohScm::Adapters
  class GitPatchTest < OhlohScm::Test
    def test_patch_for_commit
      with_git_repository('git') do |repo|
        commit = repo.verbose_commit('b6e9220c3cabe53a4ed7f32952aeaeb8a822603d')
        data = File.read(File.join(DATA_DIR, 'git_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.5.1 test/unit/git_patch_test.rb
ohloh_scm-2.4.14 test/unit/git_patch_test.rb
ohloh_scm-2.4.13 test/unit/git_patch_test.rb
ohloh_scm-2.4.12 test/unit/git_patch_test.rb
ohloh_scm-2.4.11 test/unit/git_patch_test.rb
ohloh_scm-2.4.10 test/unit/git_patch_test.rb
ohloh_scm-2.4.9 test/unit/git_patch_test.rb
ohloh_scm-2.4.8 test/unit/git_patch_test.rb
ohloh_scm-2.4.7 test/unit/git_patch_test.rb
ohloh_scm-2.4.6 test/unit/git_patch_test.rb
ohloh_scm-2.4.5 test/unit/git_patch_test.rb
ohloh_scm-2.4.4 test/unit/git_patch_test.rb
ohloh_scm-2.4.3 test/unit/git_patch_test.rb
ohloh_scm-2.4.1 test/unit/git_patch_test.rb
ohloh_scm-2.4.0 test/unit/git_patch_test.rb
ohloh_scm-2.3.5 test/unit/git_patch_test.rb
ohloh_scm-2.3.4 test/unit/git_patch_test.rb
ohloh_scm-2.3.2 test/unit/git_patch_test.rb
ohloh_scm-2.3.1 test/unit/git_patch_test.rb
ohloh_scm-2.3.0 test/unit/git_patch_test.rb