blob: 820d1e7f395a4aff3310b15c99c3d001703a857a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe AdminGeneralController, "when viewing front page of admin interface" do
integrate_views
before { basic_auth_login @request }
it "should render the front page" do
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
|