Settings.id_key = create(:client_application).key
Settings.potlatch2_key = create(:client_application).key
-
- stub_hostip_requests
end
##
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
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