Sha256: 0f5ccf7fdf8231da4dba6459f7f2e6f2374814fd2290634c7760b427748ddc35

Contents?: true

Size: 640 Bytes

Versions: 1

Compression:

Stored size: 640 Bytes

Contents

require_relative '../test_helper'

module OhlohScm::Adapters
	class SvnHeadTest < Scm::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

1 entries across 1 versions & 1 rubygems

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