Commit 3a1022e3818e2a56e151eca22f25379aa5521866

Authored by Dmitriy Zaporozhets
1 parent 569a88a4

Increase Issue description size to 10k. Fixes #2545

app/models/issue.rb
... ... @@ -24,7 +24,7 @@ class Issue < ActiveRecord::Base
24 24  
25 25 acts_as_taggable_on :labels
26 26  
27   - validates :description, length: { within: 0..2000 }
  27 + validates :description, length: { within: 0..10000 }
28 28  
29 29 def self.open_for(user)
30 30 opened.assigned(user)
... ...
spec/models/issue_spec.rb
... ... @@ -29,7 +29,7 @@ describe Issue do
29 29 end
30 30  
31 31 describe "Validation" do
32   - it { should ensure_length_of(:description).is_within(0..2000) }
  32 + it { should ensure_length_of(:description).is_within(0..10000) }
33 33 end
34 34  
35 35 describe 'modules' do
... ...