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.2.13 test/unit/svn_head_test.rb
ohloh_scm-2.2.12 test/unit/svn_head_test.rb
ohloh_scm-2.2.11 test/unit/svn_head_test.rb
ohloh_scm-2.2.10 test/unit/svn_head_test.rb
ohloh_scm-2.2.9 test/unit/svn_head_test.rb
ohloh_scm-2.2.8 test/unit/svn_head_test.rb
ohloh_scm-2.2.7 test/unit/svn_head_test.rb
ohloh_scm-2.2.6 test/unit/svn_head_test.rb
ohloh_scm-2.2.5 test/unit/svn_head_test.rb
ohloh_scm-2.2.4 test/unit/svn_head_test.rb
ohloh_scm-2.2.3 test/unit/svn_head_test.rb
ohloh_scm-2.2.2 test/unit/svn_head_test.rb
ohloh_scm-2.2.1 test/unit/svn_head_test.rb
ohloh_scm-2.2.0 test/unit/svn_head_test.rb
ohloh_scm-2.1.0 test/unit/svn_head_test.rb
ohloh_scm-2.0.1 test/unit/svn_head_test.rb