X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bb2c5677df9665e9d1a53a3d285501ba864d3e41..50b2f4f656b82112fce4939da26a1afc6b140e89:/test/controllers/site_controller_test.rb diff --git a/test/controllers/site_controller_test.rb b/test/controllers/site_controller_test.rb index e18cc04f9..4dc07f996 100644 --- a/test/controllers/site_controller_test.rb +++ b/test/controllers/site_controller_test.rb @@ -8,8 +8,6 @@ class SiteControllerTest < ActionController::TestCase Settings.id_key = create(:client_application).key Settings.potlatch2_key = create(:client_application).key - - stub_hostip_requests end ## @@ -421,6 +419,17 @@ class SiteControllerTest < ActionController::TestCase get :copyright assert_response :success assert_template "copyright" + assert_select "div[lang='en'][dir='ltr']" + + get :copyright, :params => { :copyright_locale => "fr" } + assert_response :success + assert_template "copyright" + assert_select "div[lang='fr'][dir='ltr']" + + get :copyright, :params => { :copyright_locale => "ar" } + assert_response :success + assert_template "copyright" + assert_select "div[lang='ar'][dir='rtl']" end # Test the welcome page @@ -453,6 +462,17 @@ class SiteControllerTest < ActionController::TestCase get :about assert_response :success assert_template "about" + assert_select "div[lang='en'][dir='ltr']" + + get :about, :params => { :about_locale => "fr" } + assert_response :success + assert_template "about" + assert_select "div[lang='fr'][dir='ltr']" + + get :about, :params => { :about_locale => "ar" } + assert_response :success + assert_template "about" + assert_select "div[lang='ar'][dir='rtl']" end # Test the export page