Commit 5a5cef53 authored by Dustin Eckhardt's avatar Dustin Eckhardt

Fix broken spec for private events being included in the calendar

parent 6c981fe6
...@@ -67,12 +67,12 @@ RSpec.describe Gitlab::ContributionsCalendar do ...@@ -67,12 +67,12 @@ RSpec.describe Gitlab::ContributionsCalendar do
context "when the user has opted-in for private contributions" do context "when the user has opted-in for private contributions" do
it "shows private and public events to all users" 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(private_project, today)
create_event(public_project, today) create_event(public_project, today)
expect(calendar.activity_dates[today]).to eq(1) expect(calendar.activity_dates[today]).to eq(2)
expect(calendar(user).activity_dates[today]).to eq(1) expect(calendar(user).activity_dates[today]).to eq(2)
expect(calendar(contributor).activity_dates[today]).to eq(2) expect(calendar(contributor).activity_dates[today]).to eq(2)
end end
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