gitlab-org--gitlab-foss/spec/support/matchers/user_activity_matchers.rb

6 lines
177 B
Ruby
Raw Normal View History

RSpec::Matchers.define :have_an_activity_record do |expected|
match do |user|
expect(Gitlab::UserActivities.new.find { |k, _| k == user.id.to_s }).to be_present
end
end