summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-11-25 11:22:23 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-11-25 11:22:23 +0000
commita199c068999614bddb24862f4fb648e3c1b2c089 (patch)
tree9354ab0f2ea96ebece6bbea703c2b27d56c1f848 /test/integration
parentfaaf884f97441fba1420f293186c585bb8309698 (diff)
downloadredmine-a199c068999614bddb24862f4fb648e3c1b2c089.tar.gz
redmine-a199c068999614bddb24862f4fb648e3c1b2c089.zip
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
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/issues_test.rb25
1 files changed, 13 insertions, 12 deletions
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