From cd09f83944f92cb54b8412c35e89547f004e9ad1 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Wed, 26 Dec 2012 22:35:13 +0400 Subject: [PATCH] #815: change "get" requests to "put" --- config/routes.rb | 6 +++--- spec/controllers/api/v1/build_lists_controller_spec.rb | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 6bc1b2eb7..1f08e22d3 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -16,9 +16,9 @@ Rosa::Application.routes.draw do resources :search, :only => [:index] resources :build_lists, :only => [:index, :create, :show] do member { - get :publish - get :reject_publish - get :cancel + put :publish + put :reject_publish + put :cancel } end resources :arches, :only => [:index] diff --git a/spec/controllers/api/v1/build_lists_controller_spec.rb b/spec/controllers/api/v1/build_lists_controller_spec.rb index aa37ff57b..23af298ed 100644 --- a/spec/controllers/api/v1/build_lists_controller_spec.rb +++ b/spec/controllers/api/v1/build_lists_controller_spec.rb @@ -108,7 +108,7 @@ describe Api::V1::BuildListsController do context "do cancel" do def do_cancel - get :cancel, :id => @build_list, :format => :json + put :cancel, :id => @build_list, :format => :json end context 'if user is project owner' do @@ -161,7 +161,7 @@ describe Api::V1::BuildListsController do context "do publish" do def do_publish - get :publish, :id => @build_list, :format => :json + put :publish, :id => @build_list, :format => :json end context 'if user is project owner' do @@ -220,7 +220,7 @@ describe Api::V1::BuildListsController do end def do_reject_publish - get :reject_publish, :id => @build_list, :format => :json + put :reject_publish, :id => @build_list, :format => :json end context 'if user is project owner' do