2018-04-24 13:26:09 +00:00
|
|
|
FactoryBot.define do
|
|
|
|
factory :channel do
|
2018-10-16 08:45:15 +00:00
|
|
|
area 'Email::Dummy'
|
|
|
|
group { ::Group.find(1) }
|
|
|
|
active true
|
|
|
|
options {}
|
|
|
|
preferences {}
|
|
|
|
updated_by_id 1
|
|
|
|
created_by_id 1
|
2018-12-13 09:06:44 +00:00
|
|
|
|
|
|
|
factory :twitter_channel do
|
|
|
|
area 'Twitter::Account'
|
|
|
|
options do
|
|
|
|
{
|
|
|
|
adapter: 'twitter',
|
|
|
|
auth: {
|
|
|
|
consumer_key: 'some',
|
|
|
|
consumer_secret: 'some',
|
|
|
|
oauth_token: 'key',
|
|
|
|
oauth_token_secret: 'secret',
|
|
|
|
},
|
|
|
|
user: {
|
|
|
|
screen_name: 'system_login',
|
|
|
|
id: 'system_id',
|
|
|
|
},
|
|
|
|
sync: {
|
|
|
|
import_older_tweets: true,
|
|
|
|
track_retweets: true,
|
|
|
|
search: [
|
|
|
|
{
|
|
|
|
term: 'zammad',
|
|
|
|
group_id: Group.first.id,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
term: 'hash_tag1',
|
|
|
|
group_id: Group.first.id,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
mentions: {
|
|
|
|
group_id: Group.first.id,
|
|
|
|
},
|
|
|
|
direct_messages: {
|
|
|
|
group_id: Group.first.id,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|
2018-04-24 13:26:09 +00:00
|
|
|
end
|
|
|
|
end
|