Remove save after adding an association with <<

`<<` operator already save the the association to the database
This commit is contained in:
Gaetan Craig-Riou
2024-01-10 15:48:36 +11:00
parent 92921c89d1
commit a78042cee1
2 changed files with 0 additions and 3 deletions

View File

@@ -17,8 +17,6 @@ module DfcProvider
group.enterprises << enterprise
return head :unprocessable_entity unless group.save
head :created
end

View File

@@ -82,7 +82,6 @@ describe "EnterpriseGroups::AffiliatedBy", type: :request, swagger_doc: "dfc.yam
response "204", "no content" do
before do
group.enterprises << enterprise2
group.save!
end
it "removes enterperise from group" do |example|