Sha256: ecd9377c4a2ff95419b914c2cf842de2cfb1c2e2159966f4411c128780b9174e

Contents?: true

Size: 455 Bytes

Versions: 4

Compression:

Stored size: 455 Bytes

Contents

#
# testing ruote
#
# Tue Sep  1 13:39:43 JST 2009
#

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

require 'ruote/util/misc'


class UtIsUriTest < Test::Unit::TestCase

  def test_is

    assert Ruote.is_uri?('definition.rb')
    assert Ruote.is_uri?('/definition.xml')
    assert Ruote.is_uri?('http://nada.example.com/')
  end

  def test_is_not

    assert ! Ruote.is_uri?('toto')
    assert ! Ruote.is_uri?('definition. nada')
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruote-2.3.0.3 test/unit/ut_14_is_uri.rb
ruote-2.3.0.2 test/unit/ut_14_is_uri.rb
ruote-2.3.0.1 test/unit/ut_14_is_uri.rb
ruote-2.3.0 test/unit/ut_14_is_uri.rb