diff options
author | Rémy Coutable <remy@rymai.me> | 2017-07-05 18:04:05 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-07-05 18:04:05 +0300 |
commit | d9a5d9214002a2895aaf0c598bef985b2b4ddc57 (patch) | |
tree | 7860a16b315f175a1476c3650bdadfcf53f0a43d /spec/factories | |
parent | 45ee128e9c203b02dd7d68da2d9caeaf8a0cf02d (diff) | |
parent | 9651521ea7f1cd4d77f7ab11359d8b0075b52fa6 (diff) |
Merge branch '23036-replace-snippets-spinach' into 'master'
Replace 'snippets/snippets.feature' spinach with rspec
See merge request !12385
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/personal_snippets.rb | 4 | ||||
-rw-r--r-- | spec/factories/project_snippets.rb | 5 | ||||
-rw-r--r-- | spec/factories/snippets.rb | 7 |
3 files changed, 7 insertions, 9 deletions
diff --git a/spec/factories/personal_snippets.rb b/spec/factories/personal_snippets.rb deleted file mode 100644 index 0f13b2c1020..00000000000 --- a/spec/factories/personal_snippets.rb +++ /dev/null @@ -1,4 +0,0 @@ -FactoryGirl.define do - factory :personal_snippet, parent: :snippet, class: :PersonalSnippet do - end -end diff --git a/spec/factories/project_snippets.rb b/spec/factories/project_snippets.rb deleted file mode 100644 index e0fe1b36fd3..00000000000 --- a/spec/factories/project_snippets.rb +++ /dev/null @@ -1,5 +0,0 @@ -FactoryGirl.define do - factory :project_snippet, parent: :snippet, class: :ProjectSnippet do - project factory: :empty_project - end -end diff --git a/spec/factories/snippets.rb b/spec/factories/snippets.rb index 388f662e6e5..f6ce99d50f9 100644 --- a/spec/factories/snippets.rb +++ b/spec/factories/snippets.rb @@ -18,4 +18,11 @@ FactoryGirl.define do visibility_level Snippet::PRIVATE end end + + factory :project_snippet, parent: :snippet, class: :ProjectSnippet do + project factory: :empty_project + end + + factory :personal_snippet, parent: :snippet, class: :PersonalSnippet do + end end |