Merge commit 'dc09c10fa8cc9230bf14e48d790c8f0c26043f8f' into glitch-soc/merge-upstream
Conflicts: - `.rubocop_todo.yml`: Upstream re-generated the file, while glitch-soc has a specific ignore for some file. Updated the file as upstream did and kept our extra ignore. - `config/webpack/shared.js`: Upstream added a plugin, but our files are pretty different. Added the plugin as well. - `spec/helpers/application_helper_spec.rb`: Upstream refactored tests, but part of them were different because of glitch-soc's theming system. Applied the refactoring to glitch-soc's change.
This commit is contained in:
@@ -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')
|
||||
|
Reference in New Issue
Block a user