1 require File.dirname(__FILE__) + '/../test_helper'
3 class SiteControllerTest < ActionController::TestCase
4 ## Lets check that we can get all the pages without any errors
9 assert_response :success
10 assert_template 'index'
17 # Should be redirected
18 assert_redirected_to :controller => :user, :action => 'login', :referer => "/edit"
24 assert_response :success
25 assert_template 'index'
32 assert_response :success
33 assert_template 'offline'
34 assert_site_partials 0
37 def assert_site_partials(count = 1)
38 assert_template :partial => '_search', :count => count
39 assert_template :partial => '_key', :count => count
40 assert_template :partial => '_sidebar', :count => count