spec/unit/multiparameter_attributes_spec.rb in ardm-rails-1.3.0 vs spec/unit/multiparameter_attributes_spec.rb in ardm-rails-1.3.1
- old
+ new
@@ -106,11 +106,11 @@
should_receive(:new).
with('a string', '1.5', '1.5'.to_i, '1.5'.to_f).
and_return(attributes['composite'])
composite_property = mock(::DataMapper::Property)
- composite_property.stub!(:dump_class).and_return(::Rails::DataMapper::Models::Composite)
+ composite_property.stub!(:primitive).and_return(::Rails::DataMapper::Models::Composite)
resource = ::Rails::DataMapper::Models::Fake.new
resource.stub!(:properties).and_return('composite' => composite_property)
resource.should_receive(:_super_attributes=).with(attributes)
@@ -125,10 +125,10 @@
composite_exception = StandardError.new('foo')
::Rails::DataMapper::Models::Composite.
should_receive(:new).with('a string').and_raise(composite_exception)
composite_property = mock(::DataMapper::Property)
- composite_property.stub!(:dump_class).and_return(::Rails::DataMapper::Models::Composite)
+ composite_property.stub!(:primitive).and_return(::Rails::DataMapper::Models::Composite)
resource = ::Rails::DataMapper::Models::Fake.new
resource.stub!(:properties).and_return('composite' => composite_property)
lambda { resource.attributes = multiparameter_hash }.