diff options
author | Robin Houston <robin.houston@gmail.com> | 2011-08-09 21:09:10 +0100 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2011-08-09 21:09:10 +0100 |
commit | 7d1eb5df0c1bcc6a7a92755004faf85bc00496d4 (patch) | |
tree | 6f2cda5408b633662b865c1bc435cbb63b110ac8 /spec/controllers/admin_general_controller_spec.rb | |
parent | b6860bea9d4569a52801d72734fa86849c232721 (diff) | |
parent | e6fda87211f3c525c17b0d8a2c039192a6c18bb6 (diff) |
Merge branch 'master' into wdtk
Diffstat (limited to 'spec/controllers/admin_general_controller_spec.rb')
-rw-r--r-- | spec/controllers/admin_general_controller_spec.rb | 8 |
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 |