Ivan - Add 6000 as max characters for commit [skip ci]

This commit is contained in:
ivan 2016-12-21 17:07:34 -03:00
parent 7ef2eec14b
commit 91f8394ef6
5 changed files with 5 additions and 4 deletions

View File

@ -47,6 +47,7 @@
&__comment {
position: relative;
word-break: break-all;
&-pointer {
right: 100%;

View File

@ -13,7 +13,7 @@ class CommentController extends Controller {
'permission' => 'user',
'requestData' => [
'content' => [
'validation' => DataValidator::length(20, 500),
'validation' => DataValidator::length(20, 5000),
'error' => ERRORS::INVALID_CONTENT
],
'ticketNumber' => [

View File

@ -20,7 +20,7 @@ class CreateController extends Controller {
'error' => ERRORS::INVALID_TITLE
],
'content' => [
'validation' => DataValidator::length(10, 500),
'validation' => DataValidator::length(10, 5000),
'error' => ERRORS::INVALID_CONTENT
],
'departmentId' => [

View File

@ -32,7 +32,7 @@ describe '/ticket/comment/' do
it 'should fail if content is very long' do
long_text = ''
600.times {long_text << 'a'}
6000.times {long_text << 'a'}
result = request('/ticket/comment', {
content: long_text,

View File

@ -58,7 +58,7 @@ describe '/ticket/create' do
it 'should fail if content is very long' do
long_text = ''
600.times {long_text << 'a'}
6000.times {long_text << 'a'}
result = request('/ticket/create',{
title: 'Winter is coming',