Test language specific versions of about and copyright pages
This commit is contained in:
parent
23e763ea95
commit
2f1705db7c
1 changed files with 22 additions and 0 deletions
|
@ -421,6 +421,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 +464,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue