diff options
Diffstat (limited to 'test/functional/my_controller_test.rb')
-rw-r--r-- | test/functional/my_controller_test.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/functional/my_controller_test.rb b/test/functional/my_controller_test.rb index 7e9677051..aaa4e8c0d 100644 --- a/test/functional/my_controller_test.rb +++ b/test/functional/my_controller_test.rb @@ -82,6 +82,20 @@ class MyControllerTest < ActionController::TestCase assert_no_tag :input, :attributes => { :name => 'user[custom_field_values][4]'} end + def test_my_account_should_show_language_select + get :account + assert_response :success + assert_select 'select[name=?]', 'user[language]' + end + + def test_my_account_should_not_show_language_select_with_force_default_language_for_loggedin + with_settings :force_default_language_for_loggedin => '1' do + get :account + assert_response :success + assert_select 'select[name=?]', 'user[language]', 0 + end + end + def test_update_account post :account, :user => { |