]> git.openstreetmap.org Git - rails.git/blob - test/functional/site_controller_test.rb
Various user profile/preferences translations
[rails.git] / test / functional / site_controller_test.rb
1 require File.dirname(__FILE__) + '/../test_helper'
2
3 class SiteControllerTest < ActionController::TestCase
4   ## Lets check that we can get all the pages without any errors
5   
6   # Get the index
7   def test_index
8     get :index
9     assert_response :success
10     assert_template 'index'
11     # Seems that we need to wait for Rails 2.3 for this one
12     # assert_template :partial => '_search', :count => 1
13   end
14   
15   # Get the edit page
16   def test_edit
17     get :edit
18     # Should be redirected
19     assert_response :redirect
20   end
21   
22   # Get the export page
23   def test_export
24     get :export
25     assert_response :success
26     assert_template 'index'
27   end
28   
29   # Offline page
30   def test_offline
31     get :offline
32     assert_response :success
33     assert_template 'offline'
34   end
35 end