Sha256: e69c92a6fe946620749bc64944440768f12665304322fcc1420270f60a3c3aa7

Contents?: true

Size: 1.05 KB

Versions: 15

Compression:

Stored size: 1.05 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

15 entries across 15 versions & 1 rubygems

Version Path
esr-rim-1.4.0 test/processor_test.rb
esr-rim-1.3.9 test/processor_test.rb
esr-rim-1.3.8 test/processor_test.rb
esr-rim-1.3.7 test/processor_test.rb
esr-rim-1.3.6 test/processor_test.rb
esr-rim-1.3.5 test/processor_test.rb
esr-rim-1.3.4 test/processor_test.rb
esr-rim-1.3.3 test/processor_test.rb
esr-rim-1.3.2 test/processor_test.rb
esr-rim-1.3.1 test/processor_test.rb
esr-rim-1.3.0 test/processor_test.rb
esr-rim-1.2.2 test/processor_test.rb
esr-rim-1.2.1 test/processor_test.rb
esr-rim-1.2.0 test/processor_test.rb
esr-rim-1.1.5 test/processor_test.rb