#815: change "get" requests to "put"
This commit is contained in:
parent
ba09d2afcf
commit
cd09f83944
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue