Mercurial > hg > soundsoftware-site
comparison test/functional/my_controller_test.rb @ 1517:dffacf8a6908 redmine-2.5
Update to Redmine SVN revision 13367 on 2.5-stable branch
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:29:00 +0100 |
parents | e248c7af89ec |
children |
comparison
equal
deleted
inserted
replaced
1516:b450a9d58aed | 1517:dffacf8a6908 |
---|---|
80 assert_equal User.find(2), assigns(:user) | 80 assert_equal User.find(2), assigns(:user) |
81 | 81 |
82 assert_no_tag :input, :attributes => { :name => 'user[custom_field_values][4]'} | 82 assert_no_tag :input, :attributes => { :name => 'user[custom_field_values][4]'} |
83 end | 83 end |
84 | 84 |
85 def test_my_account_should_show_language_select | |
86 get :account | |
87 assert_response :success | |
88 assert_select 'select[name=?]', 'user[language]' | |
89 end | |
90 | |
91 def test_my_account_should_not_show_language_select_with_force_default_language_for_loggedin | |
92 with_settings :force_default_language_for_loggedin => '1' do | |
93 get :account | |
94 assert_response :success | |
95 assert_select 'select[name=?]', 'user[language]', 0 | |
96 end | |
97 end | |
98 | |
85 def test_update_account | 99 def test_update_account |
86 post :account, | 100 post :account, |
87 :user => { | 101 :user => { |
88 :firstname => "Joe", | 102 :firstname => "Joe", |
89 :login => "root", | 103 :login => "root", |