Merge branch 'main' into glitch-soc/merge-upstream

This commit is contained in:
Claire
2023-03-02 17:32:38 +01:00
97 changed files with 1412 additions and 523 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ describe SearchService, type: :service do
it 'includes the tag in the results' do
query = '#tag'
tag = Tag.new
allow(Tag).to receive(:search_for).with('tag', 10, 0, exclude_unreviewed: nil).and_return([tag])
allow(Tag).to receive(:search_for).with('tag', 10, 0, { exclude_unreviewed: nil }).and_return([tag])
results = subject.call(query, nil, 10)
expect(Tag).to have_received(:search_for).with('tag', 10, 0, exclude_unreviewed: nil)