From 11bc0ac2cbd4f59ecd20d697f598bccb039eecf8 Mon Sep 17 00:00:00 2001 From: Alex Coles Date: Thu, 11 Jun 2015 13:43:42 +0200 Subject: [PATCH] Update VersionsController#update spec to use PATCH See core commit: https://github.com/opf/openproject/commit/077e42ba0632ce4c40a2b71600ec4ceef452b5d5 Signed-off-by: Alex Coles --- spec/controllers/versions_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/controllers/versions_controller_spec.rb b/spec/controllers/versions_controller_spec.rb index 41388c544d..e66720d9d2 100644 --- a/spec/controllers/versions_controller_spec.rb +++ b/spec/controllers/versions_controller_spec.rb @@ -54,7 +54,7 @@ describe VersionsController, :type => :controller do describe 'update' do it 'does not allow to update versions from different projects' do @params[:project_id] = @project.id - put 'update', @params + patch 'update', @params @version.reload 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 @params[:project_id] = @version.project.id - put 'update', @params + patch 'update', @params @version.reload expect(response).to redirect_to :controller => '/projects', :action => 'settings', :tab => 'versions', :id => @version.project