Commit e982a9512e925f1534dfc893158f5654f97454f1

Authored by Valeriy Sizov
1 parent 745c0dfa

fix tests

spec/models/issue_spec.rb
... ... @@ -28,10 +28,6 @@ describe Issue do
28 28 it { should_not allow_mass_assignment_of(:project_id) }
29 29 end
30 30  
31   - describe "Validation" do
32   - it { should ensure_length_of(:description).is_within(0..10000) }
33   - end
34   -
35 31 describe 'modules' do
36 32 it { should include_module(Issuable) }
37 33 end
... ...
spec/models/snippet_spec.rb
... ... @@ -38,6 +38,5 @@ describe Snippet do
38 38 it { should ensure_length_of(:title).is_within(0..255) }
39 39  
40 40 it { should validate_presence_of(:content) }
41   - it { should ensure_length_of(:content).is_within(0..10_000) }
42 41 end
43 42 end
... ...