blob: e6689c41d4a5e2d837192b539b72e9d91cb43aa2 (
plain)
1
2
3
4
5
6
7
8
9
10
|
# frozen_string_literal: true
RSpec.shared_context 'when user tracking is disabled' do
before do
# rubocop:disable RSpec/AnyInstanceOf
allow_any_instance_of(User).to receive(:update_tracked_fields!)
allow_any_instance_of(Users::ActivityService).to receive(:execute)
# rubocop:enable RSpec/AnyInstanceOf
end
end
|