|
|
|
@ -57,7 +57,7 @@ describe VersionsController, type: :controller do |
|
|
|
|
patch 'update', params: @params |
|
|
|
|
@version.reload |
|
|
|
|
|
|
|
|
|
expect(response).to redirect_to controller: '/projects', action: 'settings', tab: 'versions', id: @project |
|
|
|
|
expect(response).to redirect_to controller: '/project_settings', action: 'show', tab: 'versions', id: @project |
|
|
|
|
expect(@version.name).to eq(@oldVersionName) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
@ -66,7 +66,7 @@ describe VersionsController, type: :controller do |
|
|
|
|
patch 'update', params: @params |
|
|
|
|
@version.reload |
|
|
|
|
|
|
|
|
|
expect(response).to redirect_to controller: '/projects', action: 'settings', tab: 'versions', id: @version.project |
|
|
|
|
expect(response).to redirect_to controller: '/project_settings', action: 'show', tab: 'versions', id: @version.project |
|
|
|
|
expect(@version.name).to eq(@newVersionName) |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|