From f2d0e81fd6f9b6ca688888edd1ea0e39fab0c0da Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Wed, 5 Nov 2014 15:50:30 +0000 Subject: Redirect /help to /help/about Shouldn't really 404 on an important/accessible URL --- spec/controllers/help_controller_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'spec/controllers/help_controller_spec.rb') 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 -- cgit v1.2.3