Sha256: 1e596a2d5ff9c393015a920a75d1eb4175ef4a7cac47dfcde4c23929f2db3c1e

Contents?: true

Size: 402 Bytes

Versions: 1

Compression:

Stored size: 402 Bytes

Contents

require_relative '../test_helper'

module OhlohScm::Adapters
	class GitCatFileTest < Scm::Test

		def test_cat_file
			with_git_repository('git') do |git|
expected = <<-EXPECTED
/* Hello, World! */
#include <stdio.h>
main()
{
	printf("Hello, World!\\n");
}
EXPECTED
				assert_equal expected, git.cat_file(nil, Scm::Diff.new(:sha1 => '4c734ad53b272c9b3d719f214372ac497ff6c068'))
			end
		end

	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ohloh_scm-2.0.0 test/unit/git_cat_file_test.rb