Sha256: d971197c1c491fc60fd636f6e7131c2ae5776e2e1c3fc8dbad8f1a49a73c1128

Contents?: true

Size: 645 Bytes

Versions: 36

Compression:

Stored size: 645 Bytes

Contents

require_relative '../test_helper'

module OhlohScm::Adapters
	class SvnHeadTest < OhlohScm::Test

		def test_head_and_parents
			with_svn_repository('svn') do |svn|
				assert_equal 5, svn.head_token
				assert_equal 5, svn.head.token
				assert svn.head.diffs.any?

				assert_equal 4, svn.parents(svn.head).first.token
				assert svn.parents(svn.head).first.diffs.any?
			end
		end

    def test_parents_encoding
      with_invalid_encoded_svn_repository do |svn|
        assert_nothing_raised do
          commit = Struct.new(:token).new(:anything)
          svn.parents(commit) rescue raise Exception
        end
      end
    end
	end
end

Version data entries

36 entries across 36 versions & 1 rubygems

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