mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-01 16:04:19 +00:00
14 lines
376 B
Ruby
14 lines
376 B
Ruby
# 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!)
|
|
# rubocop:enable RSpec/AnyInstanceOf
|
|
|
|
allow_next_instance_of(Users::ActivityService) do |service|
|
|
allow(service).to receive(:execute)
|
|
end
|
|
end
|
|
end
|