Specs: Add specs for Facebook::SendReplyService (#396)

This commit is contained in:
Pranav Raj S
2019-12-28 23:14:09 +05:30
committed by Sojan Jose
parent 790877c056
commit e2aeeeca43
4 changed files with 115 additions and 56 deletions

View File

@@ -0,0 +1,11 @@
# frozen_string_literal: true
FactoryBot.define do
factory :facebook_page, class: 'Channel::FacebookPage' do
sequence(:page_id) { |n| n }
sequence(:user_access_token) { |n| "random-token-#{n}" }
sequence(:name) { |n| "Facebook Page #{n}" }
sequence(:page_access_token) { |n| "page-access-token-#{n}" }
account
end
end

View File

@@ -5,7 +5,6 @@ FactoryBot.define do
content { 'Message' }
status { 'sent' }
message_type { 'incoming' }
fb_id { SecureRandom.uuid }
account
inbox
conversation