diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
commit | a5f4bba440d7f9ea47046a0a561d49adf0a1e6d4 (patch) | |
tree | fb69158581673816a8cd895f9d352dcb3c678b1e /spec/controllers/dashboard/projects_controller_spec.rb | |
parent | d16b2e8639e99961de6ddc93909f3bb5c1445ba1 (diff) |
Add latest changes from gitlab-org/gitlab@14-0-stable-eev14.0.0-rc42
Diffstat (limited to 'spec/controllers/dashboard/projects_controller_spec.rb')
-rw-r--r-- | spec/controllers/dashboard/projects_controller_spec.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/controllers/dashboard/projects_controller_spec.rb b/spec/controllers/dashboard/projects_controller_spec.rb index dcec8012f03..ed8dc1eb7cb 100644 --- a/spec/controllers/dashboard/projects_controller_spec.rb +++ b/spec/controllers/dashboard/projects_controller_spec.rb @@ -156,6 +156,12 @@ RSpec.describe Dashboard::ProjectsController, :aggregate_failures do let!(:design_event) { create(:design_event, project: project) } let!(:wiki_page_event) { create(:wiki_page_event, project: project) } let!(:issue_event) { create(:closed_issue_event, project: project) } + let!(:push_event) do + create(:push_event, project: project).tap do |event| + create(:push_event_payload, event: event, ref_count: 2, ref: nil, ref_type: :tag, commit_count: 0, action: :pushed) + end + end + let(:design) { design_event.design } let(:wiki_page) { wiki_page_event.wiki_page } let(:issue) { issue_event.issue } @@ -168,9 +174,10 @@ RSpec.describe Dashboard::ProjectsController, :aggregate_failures do it 'renders all kinds of event without error' do get :index, format: :atom - expect(assigns(:events)).to include(design_event, wiki_page_event, issue_event) + expect(assigns(:events)).to include(design_event, wiki_page_event, issue_event, push_event) expect(response).to render_template('dashboard/projects/index') expect(response.body).to include( + "pushed to project", "uploaded design #{design.to_reference}", "created wiki page #{wiki_page.title}", "joined project #{project.full_name}", |