Sha256: bc657437eed745a54ac4d9594ada1dc20817a44baa0263a29089cf89f400ced9
Contents?: true
Size: 872 Bytes
Versions: 3
Compression:
Stored size: 872 Bytes
Contents
require File.dirname(__FILE__) + "/../spec_helper" describe DataMapper::Adapters::DataObjectAdapter do before(:all) do fixtures(:zoos) end if ENV['ADAPTER'] == 'postgresql' it "should be able to be given a port" do options = { :adapter => 'postgresql', :database => 'data_mapper_1', :port => 4001 } db = DataMapper::Database.setup(:my_postgres, options) db.port.should == 4001 end end it "should use DB defaults when creating an empty record" do comment = Comment.create({}) comment.new_record?.should be_false end it "should raise an argument error on create if an attribute value is not a primitive" do lambda { Zoo.create(:name => [nil, 'bob']) }.should raise_error(ArgumentError) end it "should accept a subclass as a valid type if the parent is a valid type" end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
datamapper-0.3.0 | spec/adapters/data_object_adapter_spec.rb |
datamapper-0.3.1 | spec/adapters/data_object_adapter_spec.rb |
datamapper-0.3.2 | spec/adapters/data_object_adapter_spec.rb |