Commit b4349fd3 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Remove one assertion from projects controller specs

parent 7b0e7973
...@@ -221,8 +221,8 @@ describe ProjectsController do ...@@ -221,8 +221,8 @@ describe ProjectsController do
expect { update_project path: 'renamed_path' } expect { update_project path: 'renamed_path' }
.to change { project.reload.path } .to change { project.reload.path }
expect(project.reload.path).to include 'renamed_path' expect(project.path).to include 'renamed_path'
expect(assigns(:repository).path).to include project.reload.path expect(assigns(:repository).path).to include project.path
expect(response).to have_http_status(302) expect(response).to have_http_status(302)
end end
end end
...@@ -238,7 +238,6 @@ describe ProjectsController do ...@@ -238,7 +238,6 @@ describe ProjectsController do
expect { update_project path: 'renamed_path' } expect { update_project path: 'renamed_path' }
.not_to change { project.reload.path } .not_to change { project.reload.path }
expect(project.reload.path).not_to include 'renamed_path'
expect(controller).to set_flash[:alert].to(/container registry tags/) expect(controller).to set_flash[:alert].to(/container registry tags/)
expect(response).to have_http_status(200) expect(response).to have_http_status(200)
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