diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-09-19 17:19:21 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-12-04 09:32:39 +0000 |
commit | 7e6fdfc403c4c35052d5432a844bf9855e217db7 (patch) | |
tree | 56bf9a3d1f9f2f14e1ecf9c486969301dcb695d9 | |
parent | 306fdeb7ab27e8a8bed3fc4c233fb2870f787c03 (diff) |
Add a select_authorities action.
-rw-r--r-- | app/controllers/request_controller.rb | 3 | ||||
-rw-r--r-- | app/views/request/select_authorities.html.erb | 0 | ||||
-rw-r--r-- | config/routes.rb | 1 | ||||
-rw-r--r-- | spec/controllers/request_controller_spec.rb | 9 |
4 files changed, 13 insertions, 0 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index d982bd391..70151f43f 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -43,6 +43,9 @@ class RequestController < ApplicationController medium_cache end + def select_authorities + end + def show if !AlaveteliConfiguration::varnish_host.blank? # If varnish is set up to accept PURGEs, then cache for a diff --git a/app/views/request/select_authorities.html.erb b/app/views/request/select_authorities.html.erb new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/app/views/request/select_authorities.html.erb diff --git a/config/routes.rb b/config/routes.rb index cadb7ec54..3fa66729f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -35,6 +35,7 @@ Alaveteli::Application.routes.draw do match '/list' => 'request#list', :as => :request_list match '/select_authority' => 'request#select_authority', :as => :select_authority + match '/select_authorities' => 'request#select_authorities', :as => :select_authorities match '/new' => 'request#new', :as => :new_request match '/new/:url_name' => 'request#new', :as => :new_request_to_body diff --git a/spec/controllers/request_controller_spec.rb b/spec/controllers/request_controller_spec.rb index def9dfc7e..1de917bb4 100644 --- a/spec/controllers/request_controller_spec.rb +++ b/spec/controllers/request_controller_spec.rb @@ -2509,3 +2509,12 @@ describe RequestController, "when caching fragments" do end +describe RequestController, "#select_authorities" do + + it 'should be succesful' do + get :select_authorities + response.should be_success + end + +end + |