]> source.dussan.org Git - redmine.git/commitdiff
use English at integration IssuesTest#test_issue_with_user_custom_field
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 25 Nov 2014 11:22:23 +0000 (11:22 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 25 Nov 2014 11:22:23 +0000 (11:22 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13653 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/integration/issues_test.rb

index 1f30acc8a550522c4672d8c2ecaac8c3260f5b58..358389325f656be2adceeafa282f7543c0af5320 100644 (file)
@@ -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