gitlab-org--gitlab-foss/spec/support/user_activities_helpers.rb
2017-06-21 13:48:12 +00:00

7 lines
152 B
Ruby

module UserActivitiesHelpers
def user_activity(user)
Gitlab::UserActivities.new
.find { |k, _| k == user.id.to_s }&.
second
end
end