##// END OF EJS Templates
use set_language_if_valid 'en' at test_parent_should_be_in_same_project at unit board test...
Toshi MARUYAMA -
r10271:455738cbe982
parent child
Show More
@@ -22,6 +22,8 require File.expand_path('../../test_helper', __FILE__)
22 22 class BoardTest < ActiveSupport::TestCase
23 23 fixtures :projects, :boards, :messages, :attachments, :watchers
24 24
25 include Redmine::I18n
26
25 27 def setup
26 28 @project = Project.find(1)
27 29 end
@@ -41,6 +43,7 class BoardTest < ActiveSupport::TestCase
41 43 end
42 44
43 45 def test_parent_should_be_in_same_project
46 set_language_if_valid 'en'
44 47 board = Board.new(:project_id => 3, :name => 'Test', :description => 'Test', :parent_id => 1)
45 48 assert !board.save
46 49 assert_include "Parent forum is invalid", board.errors.full_messages
General Comments 0
You need to be logged in to leave comments. Login now