summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/models/issue.rb2
-rw-r--r--spec/models/issue_spec.rb4
-rw-r--r--spec/models/snippet_spec.rb1
3 files changed, 0 insertions, 7 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index 40a6c01577d..07c0401143c 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -24,8 +24,6 @@ class Issue < ActiveRecord::Base
acts_as_taggable_on :labels
- validates :description, length: { within: 0..10000 }
-
def self.open_for(user)
opened.assigned(user)
end
diff --git a/spec/models/issue_spec.rb b/spec/models/issue_spec.rb
index 0816b3eed5a..10db53e0745 100644
--- a/spec/models/issue_spec.rb
+++ b/spec/models/issue_spec.rb
@@ -28,10 +28,6 @@ describe Issue do
it { should_not allow_mass_assignment_of(:project_id) }
end
- describe "Validation" do
- it { should ensure_length_of(:description).is_within(0..10000) }
- end
-
describe 'modules' do
it { should include_module(Issuable) }
end
diff --git a/spec/models/snippet_spec.rb b/spec/models/snippet_spec.rb
index b474d88c9e2..e4d1934829f 100644
--- a/spec/models/snippet_spec.rb
+++ b/spec/models/snippet_spec.rb
@@ -38,6 +38,5 @@ describe Snippet do
it { should ensure_length_of(:title).is_within(0..255) }
it { should validate_presence_of(:content) }
- it { should ensure_length_of(:content).is_within(0..10_000) }
end
end