Sha256: 2a6f30c0c82d6d64cd5dc629a397d8d1b64c57876dff9144589bfbe299b1137c
Contents?: true
Size: 404 Bytes
Versions: 1
Compression:
Stored size: 404 Bytes
Contents
describe 'Legacy mappings' do it('should allow models to map with custom attribute names') do Fruit.first.name.should == 'Kiwi' end it('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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datamapper-0.2.0 | spec/legacy_spec.rb |