Sha256: 38555115e0c37404b02e3b2ae50d2eaa1e78948af476ff4db6eacb96e9198927
Contents?: true
Size: 517 Bytes
Versions: 3
Compression:
Stored size: 517 Bytes
Contents
require File.dirname(__FILE__) + "/spec_helper" describe DataMapper::Base do it 'should allow mass-assignment of attributes' do zoo = Zoo.new(:name => 'MassAssignment', :notes => 'This is a test.') zoo.name.should eql('MassAssignment') zoo.notes.should eql('This is a test.') zoo.attributes = { :name => 'ThroughAttributesEqual', :notes => 'This is another test.' } zoo.name.should eql('ThroughAttributesEqual') zoo.notes.should eql('This is another test.') end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
datamapper-0.2.1 | spec/attributes_spec.rb |
datamapper-0.2.2 | spec/attributes_spec.rb |
datamapper-0.2.3 | spec/attributes_spec.rb |