Skip to content

Commit

Permalink
Fix specs that didn't expect an ACL save
Browse files Browse the repository at this point in the history
  • Loading branch information
dlpierce committed Oct 25, 2024
1 parent 2265337 commit 063651b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/services/hyrax/listeners/file_metadata_listener_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
it 'indexes the file_set' do
expect { listener.on_file_metadata_updated(event) }
.to change { fake_adapter.saved_resources }
.from(be_empty)
.to contain_exactly(file_set)
.from(contain_exactly(file_set)) # Saving the ACL triggers an index
.to(contain_exactly(file_set, file_set))
end

context 'when the file is not in a file set' do
Expand Down Expand Up @@ -53,7 +53,7 @@
it 'does not index the file_set' do
expect { listener.on_file_metadata_updated(event) }
.not_to change { fake_adapter.saved_resources }
.from(be_empty)
.from(contain_exactly(file_set)) # Saving the ACL triggers an index
end
end
end
Expand Down

0 comments on commit 063651b

Please sign in to comment.