summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-06-20 10:47:06 +0000
committerDouwe Maan <douwe@gitlab.com>2015-06-20 10:47:06 +0000
commitc0df5ff126f3a2643ce804e85f09567709eec085 (patch)
treea2ed64d9b3f285fe127182174132c88138361112 /spec/models
parent473fb23afc515b808c8687d17ead10cd7979082c (diff)
parentaecc989154ccb3cf044cff0341c0b7c195a9a572 (diff)
downloadgitlab-ce-c0df5ff126f3a2643ce804e85f09567709eec085.tar.gz
Merge branch 'snippet_optional_filename' into 'master'
Make snippet filename optional. Fixes #2384. See merge request !1866
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/snippet_spec.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/spec/models/snippet_spec.rb b/spec/models/snippet_spec.rb
index c786d0bf103..81581838675 100644
--- a/spec/models/snippet_spec.rb
+++ b/spec/models/snippet_spec.rb
@@ -40,7 +40,6 @@ describe Snippet do
it { is_expected.to validate_presence_of(:title) }
it { is_expected.to validate_length_of(:title).is_within(0..255) }
- it { is_expected.to validate_presence_of(:file_name) }
it { is_expected.to validate_length_of(:file_name).is_within(0..255) }
it { is_expected.to validate_presence_of(:content) }