Sha256: 8e96fa792cae6a3ce6c5e71de647b088ce69a3da2b2ad939f3834f0d347da09a
Contents?: true
Size: 413 Bytes
Versions: 2
Compression:
Stored size: 413 Bytes
Contents
context 'Legacy Database' do specify('should allow models to map with custom attribute names') do Fruit.first.name.should == 'Kiwi' end specify('should allow custom foreign-key mappings') do database do Fruit[:name => 'Watermelon'].devourer_of_souls.should == Animal[:name => 'Cup'] Animal[:name => 'Cup'].favourite_fruit.should == Fruit[:name => 'Watermelon'] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
datamapper-0.1.0 | spec/legacy.rb |
datamapper-0.1.1 | spec/legacy.rb |