Sha256: 2bfdbd1c2161ecafd69b70c6f1367048fbc8b4fb926dfdcf43668cc1647ca849

Contents?: true

Size: 439 Bytes

Versions: 5

Compression:

Stored size: 439 Bytes

Contents

require File.expand_path('../../helper', __FILE__)

class HelperTest < TestCase
  include Proton::Helpers

  test "rel" do
    assert_equal 'index.html', rel('index.html', '/about/index.html')
    assert_equal '../index.html', rel('/index.html', '/about/index.html')
    assert_equal '../foo/index.html', rel('/foo/index.html', '/about/index.html')
    assert_equal '../about/us.html', rel('/about/us.html', '/about/index.html')
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
proton-0.3.6 test/unit/helper_test.rb
proton-0.3.5 test/unit/helper_test.rb
proton-0.3.4 test/unit/helper_test.rb
proton-0.3.3 test/unit/helper_test.rb
proton-0.3.2 test/unit/helper_test.rb