diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-26 10:54:47 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-26 10:54:47 +0000 |
commit | 455738cbe982a8d37c506fc80b43ce0f8a856e3b (patch) | |
tree | 3c997369694ee8d51863345116abee28e9158e96 /test/unit/board_test.rb | |
parent | cf52a6ccb43a64adb928a7842d0681dec4b4c4e9 (diff) | |
download | redmine-455738cbe982a8d37c506fc80b43ce0f8a856e3b.tar.gz redmine-455738cbe982a8d37c506fc80b43ce0f8a856e3b.zip |
use set_language_if_valid 'en' at test_parent_should_be_in_same_project at unit board test
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10478 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/board_test.rb')
-rw-r--r-- | test/unit/board_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/unit/board_test.rb b/test/unit/board_test.rb index 0326cbfb5..4a6a70eb4 100644 --- a/test/unit/board_test.rb +++ b/test/unit/board_test.rb @@ -22,6 +22,8 @@ require File.expand_path('../../test_helper', __FILE__) class BoardTest < ActiveSupport::TestCase fixtures :projects, :boards, :messages, :attachments, :watchers + include Redmine::I18n + def setup @project = Project.find(1) end @@ -41,6 +43,7 @@ class BoardTest < ActiveSupport::TestCase end def test_parent_should_be_in_same_project + set_language_if_valid 'en' board = Board.new(:project_id => 3, :name => 'Test', :description => 'Test', :parent_id => 1) assert !board.save assert_include "Parent forum is invalid", board.errors.full_messages |