summaryrefslogtreecommitdiff
path: root/spec/factories/project_snippets.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-03-08 16:39:53 -0500
committerRobert Speicher <rspeicher@gmail.com>2016-03-08 16:40:27 -0500
commit7000e76a01f20fcb739587cb446610c4076bf910 (patch)
tree8eee0a632d0e06f14d0b38820e40aabdfc019912 /spec/factories/project_snippets.rb
parente8cd04e831a2db36c4029f2c193fc40d2568c79e (diff)
downloadgitlab-ce-7000e76a01f20fcb739587cb446610c4076bf910.tar.gz
Simplify the various Snippet factories
Diffstat (limited to 'spec/factories/project_snippets.rb')
-rw-r--r--spec/factories/project_snippets.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/spec/factories/project_snippets.rb b/spec/factories/project_snippets.rb
index 154442bd3db..d681a2c8483 100644
--- a/spec/factories/project_snippets.rb
+++ b/spec/factories/project_snippets.rb
@@ -1,9 +1,5 @@
FactoryGirl.define do
- factory :project_snippet do
+ factory :project_snippet, parent: :snippet, class: :ProjectSnippet do
project
- author
- title
- content
- file_name
end
end