aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/admin_general_controller_spec.rb
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2011-08-03 15:07:40 +0100
committerSeb Bacon <seb.bacon@gmail.com>2011-08-03 15:07:40 +0100
commit4f501309ade230f65f4ba45e1d0161e89587d755 (patch)
treeb97c9597ed159f7d7b817ff07a1a9cce8c70d06f /spec/controllers/admin_general_controller_spec.rb
parentcd73e401622d31a189d8cf3b38e9cbe46ca73e96 (diff)
Force a trailing slash on the end of the administrators' index page. Fixes #106
Diffstat (limited to 'spec/controllers/admin_general_controller_spec.rb')
-rw-r--r--spec/controllers/admin_general_controller_spec.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/controllers/admin_general_controller_spec.rb b/spec/controllers/admin_general_controller_spec.rb
index 4c3708268..820d1e7f3 100644
--- a/spec/controllers/admin_general_controller_spec.rb
+++ b/spec/controllers/admin_general_controller_spec.rb
@@ -5,8 +5,14 @@ describe AdminGeneralController, "when viewing front page of admin interface" do
before { basic_auth_login @request }
it "should render the front page" do
- get :index
+ get :index, :suppress_redirect => 1
response.should render_template('index')
end
+ it "should redirect to include trailing slash" do
+ get :index
+ response.should redirect_to(:controller => 'admin_general',
+ :action => 'index')
+ end
+
end