Update rspec-rails to version 6.0.1 (#23908)
This commit is contained in:
parent
35dff48edf
commit
9da52ac044
3 changed files with 19 additions and 19 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue