Merge remote-tracking branch 'parent/main' into kb_migration
This commit is contained in:
commit
adfa3524fc
38 changed files with 294 additions and 184 deletions
|
@ -23,8 +23,7 @@ describe ReportFilter do
|
|||
it 'combines filters on Report' do
|
||||
filter = described_class.new(account_id: '123', resolved: true, target_account_id: '456')
|
||||
|
||||
allow(Report).to receive(:where).and_return(Report.none)
|
||||
allow(Report).to receive(:resolved).and_return(Report.none)
|
||||
allow(Report).to receive_messages(where: Report.none, resolved: Report.none)
|
||||
filter.results
|
||||
expect(Report).to have_received(:where).with(account_id: '123')
|
||||
expect(Report).to have_received(:where).with(target_account_id: '456')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue