From: Toshi MARUYAMA Date: Tue, 25 Nov 2014 11:22:23 +0000 (+0000) Subject: use English at integration IssuesTest#test_issue_with_user_custom_field X-Git-Tag: 3.0.0~334 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a199c068999614bddb24862f4fb648e3c1b2c089;p=redmine.git use English at integration IssuesTest#test_issue_with_user_custom_field git-svn-id: http://svn.redmine.org/redmine/trunk@13653 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/integration/issues_test.rb b/test/integration/issues_test.rb index 1f30acc8a..358389325 100644 --- a/test/integration/issues_test.rb +++ b/test/integration/issues_test.rb @@ -178,20 +178,21 @@ class IssuesTest < ActionDispatch::IntegrationTest assert_select 'option[value=?][selected=selected]', tester.id.to_s, :text => tester.name end - # Update issue new_tester = users[1] - assert_difference 'Journal.count' do - put "/issues/#{issue.id}", - :notes => 'Updating custom field', - :issue => { - :custom_field_values => {@field.id.to_s => new_tester.id.to_s} - } - assert_redirected_to "/issues/#{issue.id}" + with_settings :default_language => 'en' do + # Update issue + assert_difference 'Journal.count' do + put "/issues/#{issue.id}", + :notes => 'Updating custom field', + :issue => { + :custom_field_values => {@field.id.to_s => new_tester.id.to_s} + } + assert_redirected_to "/issues/#{issue.id}" + end + # Issue view + follow_redirect! + assert_select 'ul.details li', :text => "Tester changed from #{tester} to #{new_tester}" end - - # Issue view - follow_redirect! - assert_select 'ul.details li', :text => "Tester changed from #{tester} to #{new_tester}" end def test_update_using_invalid_http_verbs