debian-mirror-gitlab/spec/support/shared_contexts/disable_user_tracking.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
332 B
Ruby
Raw Normal View History

2023-03-04 22:38:38 +05:30
# 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