Skip to content

Commit

Permalink
Update spec/granite/form/model/associations/reflections/references_ma…
Browse files Browse the repository at this point in the history
…ny_spec.rb

Co-authored-by: Ilya Denisov <[email protected]>
  • Loading branch information
lstrzebinczyk and id-ilych authored May 13, 2024
1 parent 93801de commit 5bf1016
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,10 @@
specify { expect { book.owner_ids = [other.id] }.to change { book.owner_ids }.from([nil]).to([other.id]) }

specify do
expect { book.owner_ids = [other.id] }.to change {
book.owners
}.from([an_instance_of(Author)]).to([other])
expect { book.owner_ids = [other.id] }
.to change { book.owners }
.from([an_instance_of(Author)])
.to([other])
end

specify { expect { book.owners = [] }.to change { book.owner_ids }.from([nil]).to([]) }
Expand Down

0 comments on commit 5bf1016

Please sign in to comment.