diff --git a/spec/lib/extensions/virtual_total_spec.rb b/spec/lib/extensions/virtual_total_spec.rb index 31d0edbb3ac..895160a4b15 100644 --- a/spec/lib/extensions/virtual_total_spec.rb +++ b/spec/lib/extensions/virtual_total_spec.rb @@ -409,7 +409,7 @@ def model_with_children(count) def model_with_children(count) FactoryGirl.create(:vm_vmware, :hardware => FactoryGirl.create(:hardware)).tap do |vm| - count.times { vm.hardware.disks.create(FactoryGirl.attributes_for(:disk, :size => 10.0)) } + count.times { vm.hardware.disks.create(:size => 10.0) } end.reload end end