]> source.dussan.org Git - redmine.git/commitdiff
Merged r10249 from trunk to 1.4-stable
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 1 Sep 2012 05:08:42 +0000 (05:08 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 1 Sep 2012 05:08:42 +0000 (05:08 +0000)
set language en to test_label_for at test/unit/query_test.rb.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.4-stable@10260 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/query_test.rb

index 87b426ecb3bc0406e07cba1676e31c070e6a8628..222b044bb5f18368e906c0eeb0200efa0f511dea 100644 (file)
@@ -18,6 +18,8 @@
 require File.expand_path('../../test_helper', __FILE__)
 
 class QueryTest < ActiveSupport::TestCase
+  include Redmine::I18n
+
   fixtures :projects, :enabled_modules, :users, :members,
            :member_roles, :roles, :trackers, :issue_statuses,
            :issue_categories, :enumerations, :issues,
@@ -757,6 +759,7 @@ class QueryTest < ActiveSupport::TestCase
   end
 
   def test_label_for
+    set_language_if_valid 'en'
     q = Query.new
     assert_equal 'Assignee', q.label_for('assigned_to_id')
   end