Sha256: d3842277734bbe54917f1b3dbee3d7263ed4e154eea7e84f7b6a059937796000

Contents?: true

Size: 465 Bytes

Versions: 13

Compression:

Stored size: 465 Bytes

Contents

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

require File.join(File.dirname(__FILE__), '..', 'test_helper.rb')

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

13 entries across 13 versions & 2 rubygems

Version Path
ruote-maestrodev-2.2.1 test/unit/ut_14_is_uri.rb
ruote-2.2.0 test/unit/ut_14_is_uri.rb
ruote-2.1.11 test/unit/ut_14_is_uri.rb
ruote-2.1.10 test/unit/ut_14_is_uri.rb
ruote-2.1.9 test/unit/ut_14_is_uri.rb
ruote-2.1.8 test/unit/ut_14_is_uri.rb
ruote-2.1.7 test/unit/ut_14_is_uri.rb
ruote-2.1.6 test/unit/ut_14_is_uri.rb
ruote-2.1.5 test/unit/ut_14_is_uri.rb
ruote-2.1.4 test/unit/ut_14_is_uri.rb
ruote-2.1.3 test/unit/ut_14_is_uri.rb
ruote-2.1.2 test/unit/ut_14_is_uri.rb
ruote-2.1.1 test/unit/ut_14_is_uri.rb