Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-01-26 21:59:23 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-02-02 16:25:44 +0300
commit64c9768bd6916edfc1e43907ca5e976524b8d51b (patch)
tree850ea9b5a7ac5178555f817d27402647df5e4b0b /spec/factories/spam_logs.rb
parentd20e75a8d80c2828336cd22897ea6868d666f8a5 (diff)
Use truncate helper on spam logs list
Diffstat (limited to 'spec/factories/spam_logs.rb')
-rw-r--r--spec/factories/spam_logs.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/factories/spam_logs.rb b/spec/factories/spam_logs.rb
index 9e8686d73c2..d90e5d6bf26 100644
--- a/spec/factories/spam_logs.rb
+++ b/spec/factories/spam_logs.rb
@@ -3,5 +3,9 @@
FactoryGirl.define do
factory :spam_log do
user
+ source_ip { FFaker::Internet.ip_v4_address }
+ noteable_type 'Issue'
+ title { FFaker::Lorem.sentence }
+ description { FFaker::Lorem.paragraph(5) }
end
end