#815: change "get" requests to "put"

This commit is contained in:
Vokhmin Alexey V 2012-12-26 22:35:13 +04:00
parent ba09d2afcf
commit cd09f83944
2 changed files with 6 additions and 6 deletions

View File

@ -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]

View File

@ -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