From a0ee0e661fab71e22aca985a90a5925a2d3b9d9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Thu, 19 Sep 2019 17:49:09 +0200 Subject: [PATCH] Fix missing sequences in notification factory If we don't define a sequence, `n` becomes an object instead of a number. --- spec/factories/notifications.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/factories/notifications.rb b/spec/factories/notifications.rb index b79b478c4..f45453fcd 100644 --- a/spec/factories/notifications.rb +++ b/spec/factories/notifications.rb @@ -9,8 +9,8 @@ FactoryBot.define do end factory :admin_notification do - title { |n| "Admin Notification title #{n}" } - body { |n| "Admin Notification body #{n}" } + sequence(:title) { |n| "Admin Notification title #{n}" } + sequence(:body) { |n| "Admin Notification body #{n}" } link { nil } segment_recipient { UserSegments::SEGMENTS.sample } recipients_count { nil }