Sha256: 5c08436ddd2f37b1b1cf83d71cc6ee5886a1ef19d0360a8df1cfc63fe4caa723

Contents?: true

Size: 537 Bytes

Versions: 36

Compression:

Stored size: 537 Bytes

Contents

require_relative '../test_helper'

module OhlohScm::Adapters
	class SvnCatFileTest < OhlohScm::Test

		def test_cat_file
			with_svn_repository('svn') do |svn|
expected = <<-EXPECTED
/* Hello, World! */
#include <stdio.h>
main()
{
	printf("Hello, World!\\n");
}
EXPECTED
				assert_equal expected, svn.cat_file(OhlohScm::Commit.new(:token => 1), OhlohScm::Diff.new(:path => "trunk/helloworld.c"))

				assert_equal nil, svn.cat_file(OhlohScm::Commit.new(:token => 1), OhlohScm::Diff.new(:path => "file not found"))
			end
		end
	end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
ohloh_scm-2.5.1 test/unit/svn_cat_file_test.rb
ohloh_scm-2.4.14 test/unit/svn_cat_file_test.rb
ohloh_scm-2.4.13 test/unit/svn_cat_file_test.rb
ohloh_scm-2.4.12 test/unit/svn_cat_file_test.rb
ohloh_scm-2.4.11 test/unit/svn_cat_file_test.rb
ohloh_scm-2.4.10 test/unit/svn_cat_file_test.rb
ohloh_scm-2.4.9 test/unit/svn_cat_file_test.rb
ohloh_scm-2.4.8 test/unit/svn_cat_file_test.rb
ohloh_scm-2.4.7 test/unit/svn_cat_file_test.rb
ohloh_scm-2.4.6 test/unit/svn_cat_file_test.rb
ohloh_scm-2.4.5 test/unit/svn_cat_file_test.rb
ohloh_scm-2.4.4 test/unit/svn_cat_file_test.rb
ohloh_scm-2.4.3 test/unit/svn_cat_file_test.rb
ohloh_scm-2.4.1 test/unit/svn_cat_file_test.rb
ohloh_scm-2.4.0 test/unit/svn_cat_file_test.rb
ohloh_scm-2.3.5 test/unit/svn_cat_file_test.rb
ohloh_scm-2.3.4 test/unit/svn_cat_file_test.rb
ohloh_scm-2.3.2 test/unit/svn_cat_file_test.rb
ohloh_scm-2.3.1 test/unit/svn_cat_file_test.rb
ohloh_scm-2.3.0 test/unit/svn_cat_file_test.rb