Commit 4dac986c authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'eggerd-master-patch-87554' into 'master'

Fix broken spec for private events being included in the calendar

See merge request gitlab-org/gitlab!74703
parents ee5e3094 5a5cef53
......@@ -67,12 +67,12 @@ RSpec.describe Gitlab::ContributionsCalendar do
context "when the user has opted-in for private contributions" do
it "shows private and public events to all users" do
user.update_column(:include_private_contributions, true)
contributor.update_column(:include_private_contributions, true)
create_event(private_project, today)
create_event(public_project, today)
expect(calendar.activity_dates[today]).to eq(1)
expect(calendar(user).activity_dates[today]).to eq(1)
expect(calendar.activity_dates[today]).to eq(2)
expect(calendar(user).activity_dates[today]).to eq(2)
expect(calendar(contributor).activity_dates[today]).to eq(2)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment