Sha256: ccdda00e39b66730fb68a75986d6c13870a3ce61978436effd7854e1275993ec
Contents?: true
Size: 731 Bytes
Versions: 6
Compression:
Stored size: 731 Bytes
Contents
require 'mida_vocabulary/datatype' require 'yaml' describe Mida::DataType::URL do it '#parse should raise an exception if a bad url passed' do test = lambda {Mida::DataType::URL.parse('example.com')} test.should raise_error(ArgumentError) end it '#parse should raise an exception if value is empty' do test = lambda {Mida::DataType::URL.parse('')} test.should raise_error(ArgumentError) end it '#parse should accept a valid url' do url_text = 'http://example.com/test/' url = Mida::DataType::URL.parse(url_text) url.to_s.should == url_text end it '#parse should accept a valid url' do url_text = 'http://example.com/test/' url = Mida::DataType::URL.parse(url_text) end end
Version data entries
6 entries across 6 versions & 1 rubygems