summaryrefslogtreecommitdiff
path: root/spec/factories.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-08-01 17:54:44 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-08-01 17:54:44 +0300
commit9338ed0606913460f09d6e0633eb436a52491514 (patch)
tree5f17558958ac69fb00bed8b0f2e746437cac55fe /spec/factories.rb
parent7e1680934bbba7df0c7d4b2448e28bbd2d697168 (diff)
downloadgitlab-ce-9338ed0606913460f09d6e0633eb436a52491514.tar.gz
Fix project and notes specs
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'spec/factories.rb')
-rw-r--r--spec/factories.rb37
1 files changed, 0 insertions, 37 deletions
diff --git a/spec/factories.rb b/spec/factories.rb
index c593b1fc401..03c87fcc6c5 100644
--- a/spec/factories.rb
+++ b/spec/factories.rb
@@ -62,43 +62,6 @@ FactoryGirl.define do
factory :reopened_issue, traits: [:reopened]
end
- factory :note do
- project
- note "Note"
- author
-
- factory :note_on_commit, traits: [:on_commit]
- factory :note_on_commit_diff, traits: [:on_commit, :on_diff]
- factory :note_on_issue, traits: [:on_issue], aliases: [:votable_note]
- factory :note_on_merge_request, traits: [:on_merge_request]
- factory :note_on_merge_request_diff, traits: [:on_merge_request, :on_diff]
-
- trait :on_commit do
- project factory: :project
- commit_id "bcf03b5de6c33f3869ef70d68cf06e679d1d7f9a"
- noteable_type "Commit"
- end
-
- trait :on_diff do
- line_code "0_184_184"
- end
-
- trait :on_merge_request do
- project factory: :project
- noteable_id 1
- noteable_type "MergeRequest"
- end
-
- trait :on_issue do
- noteable_id 1
- noteable_type "Issue"
- end
-
- trait :with_attachment do
- attachment { fixture_file_upload(Rails.root + "spec/fixtures/dk.png", "`/png") }
- end
- end
-
factory :event do
factory :closed_issue_event do
project