GitLab steht wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Commit 69f3389b authored by tmaruyama's avatar tmaruyama

use set_language_if_valid 'en' at test_parent_should_be_in_same_project at unit board test

git-svn-id: https://svn.redmine.org/redmine/trunk@10478 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 97f03288
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment