Commit 08cf6fcc authored by Małgorzata Ksionek's avatar Małgorzata Ksionek

Update events spec

parent 21bc038b
...@@ -7,7 +7,7 @@ describe 'cycle analytics events' do ...@@ -7,7 +7,7 @@ describe 'cycle analytics events' do
let!(:context) { create(:issue, project: project, created_at: 2.days.ago) } let!(:context) { create(:issue, project: project, created_at: 2.days.ago) }
let(:events) do let(:events) do
CycleAnalytics.new(project, { from: from_date, current_user: user })[stage].events CycleAnalytics::ProjectLevel.new(project: project, options: { from: from_date, current_user: user })[stage].events
end end
before do before do
......
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