@@ -22,6 +22,8 require File.expand_path('../../test_helper', __FILE__) | |||||
22 | class BoardTest < ActiveSupport::TestCase |
|
22 | class BoardTest < ActiveSupport::TestCase | |
23 | fixtures :projects, :boards, :messages, :attachments, :watchers |
|
23 | fixtures :projects, :boards, :messages, :attachments, :watchers | |
24 |
|
24 | |||
|
25 | include Redmine::I18n | |||
|
26 | ||||
25 | def setup |
|
27 | def setup | |
26 | @project = Project.find(1) |
|
28 | @project = Project.find(1) | |
27 | end |
|
29 | end | |
@@ -41,6 +43,7 class BoardTest < ActiveSupport::TestCase | |||||
41 | end |
|
43 | end | |
42 |
|
44 | |||
43 | def test_parent_should_be_in_same_project |
|
45 | def test_parent_should_be_in_same_project | |
|
46 | set_language_if_valid 'en' | |||
44 | board = Board.new(:project_id => 3, :name => 'Test', :description => 'Test', :parent_id => 1) |
|
47 | board = Board.new(:project_id => 3, :name => 'Test', :description => 'Test', :parent_id => 1) | |
45 | assert !board.save |
|
48 | assert !board.save | |
46 | assert_include "Parent forum is invalid", board.errors.full_messages |
|
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