#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 :search, :only => [:index]
|
||||||
resources :build_lists, :only => [:index, :create, :show] do
|
resources :build_lists, :only => [:index, :create, :show] do
|
||||||
member {
|
member {
|
||||||
get :publish
|
put :publish
|
||||||
get :reject_publish
|
put :reject_publish
|
||||||
get :cancel
|
put :cancel
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
resources :arches, :only => [:index]
|
resources :arches, :only => [:index]
|
||||||
|
|
|
@ -108,7 +108,7 @@ describe Api::V1::BuildListsController do
|
||||||
|
|
||||||
context "do cancel" do
|
context "do cancel" do
|
||||||
def do_cancel
|
def do_cancel
|
||||||
get :cancel, :id => @build_list, :format => :json
|
put :cancel, :id => @build_list, :format => :json
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'if user is project owner' do
|
context 'if user is project owner' do
|
||||||
|
@ -161,7 +161,7 @@ describe Api::V1::BuildListsController do
|
||||||
|
|
||||||
context "do publish" do
|
context "do publish" do
|
||||||
def do_publish
|
def do_publish
|
||||||
get :publish, :id => @build_list, :format => :json
|
put :publish, :id => @build_list, :format => :json
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'if user is project owner' do
|
context 'if user is project owner' do
|
||||||
|
@ -220,7 +220,7 @@ describe Api::V1::BuildListsController do
|
||||||
end
|
end
|
||||||
|
|
||||||
def do_reject_publish
|
def do_reject_publish
|
||||||
get :reject_publish, :id => @build_list, :format => :json
|
put :reject_publish, :id => @build_list, :format => :json
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'if user is project owner' do
|
context 'if user is project owner' do
|
||||||
|
|
Loading…
Reference in New Issue