From e982a9512e925f1534dfc893158f5654f97454f1 Mon Sep 17 00:00:00 2001 From: Valeriy Sizov Date: Tue, 22 Jan 2013 17:25:35 +0200 Subject: [PATCH] fix tests --- spec/models/issue_spec.rb | 4 ---- spec/models/snippet_spec.rb | 1 - 2 files changed, 5 deletions(-) diff --git a/spec/models/issue_spec.rb b/spec/models/issue_spec.rb index 0816b3ee..10db53e0 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 b474d88c..e4d19348 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