Skip to content

Commit

Permalink
Merge pull request ManageIQ#16976 from bdunne/unnecessary_attributes_for
Browse files Browse the repository at this point in the history
No need to use FactoryGirl.attributes_for
  • Loading branch information
chrisarcand authored Feb 8, 2018
2 parents 45a6754 + 7c431bd commit ae9f93a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/lib/extensions/virtual_total_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ae9f93a

Please sign in to comment.