Update VersionsController#update spec to use PATCH

See core commit:
077e42ba06

Signed-off-by: Alex Coles <alex@alexbcoles.com>
pull/6827/head
Alex Coles 10 years ago
parent 1c7f61b943
commit 11bc0ac2cb
  1. 4
      spec/controllers/versions_controller_spec.rb

@ -54,7 +54,7 @@ describe VersionsController, :type => :controller do
describe 'update' do describe 'update' do
it 'does not allow to update versions from different projects' do it 'does not allow to update versions from different projects' do
@params[:project_id] = @project.id @params[:project_id] = @project.id
put 'update', @params patch 'update', @params
@version.reload @version.reload
expect(response).to redirect_to :controller => '/projects', :action => 'settings', :tab => 'versions', :id => @project expect(response).to redirect_to :controller => '/projects', :action => 'settings', :tab => 'versions', :id => @project
@ -63,7 +63,7 @@ describe VersionsController, :type => :controller do
it 'allows to update versions from the version project' do it 'allows to update versions from the version project' do
@params[:project_id] = @version.project.id @params[:project_id] = @version.project.id
put 'update', @params patch 'update', @params
@version.reload @version.reload
expect(response).to redirect_to :controller => '/projects', :action => 'settings', :tab => 'versions', :id => @version.project expect(response).to redirect_to :controller => '/projects', :action => 'settings', :tab => 'versions', :id => @version.project

Loading…
Cancel
Save