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