Remove one assertion from projects controller specs

This commit is contained in:
Grzegorz Bizon 2017-07-14 14:07:32 +02:00
parent 7b0e79730f
commit b4349fd331
1 changed files with 2 additions and 3 deletions

View File

@ -221,8 +221,8 @@ describe ProjectsController do
expect { update_project path: 'renamed_path' }
.to change { project.reload.path }
expect(project.reload.path).to include 'renamed_path'
expect(assigns(:repository).path).to include project.reload.path
expect(project.path).to include 'renamed_path'
expect(assigns(:repository).path).to include project.path
expect(response).to have_http_status(302)
end
end
@ -238,7 +238,6 @@ describe ProjectsController do
expect { update_project path: 'renamed_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(response).to have_http_status(200)
end