Displaying 1 result from an estimated 1 matches for "asset_reload".
Did you mean:
asset_reloaded
2007 Mar 26
2
Failure creating model in spec setup not reported?
...> @product)
@asset.should respond_to(:quote_parameters)
@asset.quote_parameters.should respond_to(:<<)
@asset.quote_parameters << quote_parameters_1
@asset.quote_parameters << quote_parameters_2
@asset.save.should == true
asset_reloaded = Asset.find(@asset.id)
asset_reloaded.quote_parameters.map { |p|
p.term }.sort.should == [ 36, 48 ]
end
end
Regardless of whether this is a good way to spec the association or
(probably) not, it fails on "@asset.save.should == true" with this
error:
should h...