Sha256: 929780e2a3e52dee9569564ae4e19c8aa17e72660e576975278bee3893ba0c91

Contents?: true

Size: 1.08 KB

Versions: 5

Compression:

Stored size: 1.08 KB

Contents

$:.unshift File.join(File.dirname(__FILE__),"..","lib")
$:.unshift File.join(File.dirname(__FILE__))

require 'minitest/autorun'
require 'rim/processor'
require 'test_helper'
require 'fileutils'

class ProcessorTest < Minitest::Test
  include FileUtils
  include TestHelper

  def setup
    test_dir = empty_test_dir("command_helper_test")
  end
  
  def teardown
    remove_test_dirs
  end

  def test_get_absolute_remote_url
    cut = RIM::Processor.new(".", nil)
    assert File.expand_path(".") == cut.get_absolute_remote_url("file://.")
    assert File.expand_path("abcd", ".") == cut.get_absolute_remote_url("file://abcd")
    assert File.expand_path("abc", ".") == cut.get_absolute_remote_url("file://./abc")        
    assert "C:/abcdef" == cut.get_absolute_remote_url("file:///C|/abcdef")        
    assert "/abcdef/defghi" == cut.get_absolute_remote_url("file:///abcdef/defghi")        
    assert "ssh://gerrit/abcde" == cut.get_absolute_remote_url("abcde")    
    assert "ssh://gerrit2/abcde" == cut.get_absolute_remote_url("ssh://gerrit2/abcde")    
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
esr-rim-1.4.8 test/processor_test.rb
esr-rim-1.4.7 test/processor_test.rb
esr-rim-1.4.4 test/processor_test.rb
esr-rim-1.4.3 test/processor_test.rb
esr-rim-1.4.2 test/processor_test.rb