aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/help_controller_spec.rb
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2014-11-05 15:50:30 +0000
committerGareth Rees <gareth@mysociety.org>2014-11-05 15:50:30 +0000
commitf2d0e81fd6f9b6ca688888edd1ea0e39fab0c0da (patch)
tree40126c9393932c999348f672ac805e2987d1f9f6 /spec/controllers/help_controller_spec.rb
parente35662cd62c781b144d4154568ac7fa0b4c45d36 (diff)
Redirect /help to /help/about
Shouldn't really 404 on an important/accessible URL
Diffstat (limited to 'spec/controllers/help_controller_spec.rb')
-rw-r--r--spec/controllers/help_controller_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/controllers/help_controller_spec.rb b/spec/controllers/help_controller_spec.rb
index f92323f50..9453c9461 100644
--- a/spec/controllers/help_controller_spec.rb
+++ b/spec/controllers/help_controller_spec.rb
@@ -4,6 +4,15 @@ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe HelpController do
render_views
+ describe :index do
+
+ it 'redirects to the about page' do
+ get :index
+ expect(response).to redirect_to(help_about_path)
+ end
+
+ end
+
describe :about do
it 'shows the about page' do