Skip to content

Commit

Permalink
Change some of the 'alaveteli pro' routes to 'pro' routes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-griffen committed Mar 22, 2024
1 parent afc78ed commit 048616b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions config/routes.rb
Expand Up @@ -872,8 +872,8 @@ def matches?(request)
end
end

namespace :alaveteli_pro do
root to: 'dashboard#index', :as => :dashboard, :via => :get
namespace :alaveteli_pro, path: 'pro' do
get :dashboard, to: 'dashboard#index'
resources :draft_info_requests, :only => [:create, :update]
resources :info_requests, only: [:new, :create, :index] do
get :preview, on: :new # /info_request/new/preview
Expand Down Expand Up @@ -906,7 +906,7 @@ def matches?(request)
resources :public_bodies, :only => [:index]
end

scope path: :alaveteli_pro do
scope path: :pro do
# So that we can show a batch request using the existing controller from
# the pro context
match '/info_request_batches/:id' => 'info_request_batch#show',
Expand Down
Expand Up @@ -139,7 +139,7 @@
it 'redirects to index action' do
get :new
expect(response).to redirect_to(
'/alaveteli_pro/batch_request_authority_searches'
'/pro/batch_request_authority_searches'
)
end
end
Expand Down
Expand Up @@ -36,7 +36,7 @@ def assign_variables
assign_variables
render
expect(rendered).
to match(/data-search-url="\/alaveteli_pro\/public_bodies"/)
to match(/data-search-url="\/pro\/public_bodies"/)
end

it "includes a hidden field for the body id" do
Expand Down

0 comments on commit 048616b

Please sign in to comment.