Sha256: bcc841782b2fd8c247f3f48e89f96df8dbdf88348a964d0a0453bbf34cdf56b7
Contents?: true
Size: 668 Bytes
Versions: 3
Compression:
Stored size: 668 Bytes
Contents
require 'pathname' require Pathname(__FILE__).dirname.parent.expand_path + 'spec_helper' describe DataMapper::Types::URI do before(:all) do class URITest include DataMapper::Resource property :id, Integer, :serial => true property :uri, DM::URI end URITest.auto_migrate! end it "should work" do repository(:default) do URITest.create!(:uri => 'http://localhost') end URITest.first.uri.should == Addressable::URI.parse('http://localhost') end it 'should immediately typecast supplied values' do URITest.new(:uri => 'http://localhost').uri.should == Addressable::URI.parse('http://localhost') end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dm-types-0.9.4 | spec/integration/uri_spec.rb |
dm-types-0.9.5 | spec/integration/uri_spec.rb |
dm-types-0.9.3 | spec/integration/uri_spec.rb |