2020-03-05 20:13:12 +00:00
|
|
|
require 'rails_helper'
|
2021-07-31 15:49:42 +00:00
|
|
|
require Rails.root.join 'spec/models/concerns/access_tokenable_shared.rb'
|
2022-07-21 17:27:12 +00:00
|
|
|
require Rails.root.join 'spec/models/concerns/avatarable_shared.rb'
|
2020-03-05 20:13:12 +00:00
|
|
|
|
|
|
|
RSpec.describe AgentBot, type: :model do
|
|
|
|
describe 'associations' do
|
|
|
|
it { is_expected.to have_many(:agent_bot_inboxes) }
|
|
|
|
it { is_expected.to have_many(:inboxes) }
|
|
|
|
end
|
2021-01-14 15:05:22 +00:00
|
|
|
|
|
|
|
describe 'concerns' do
|
|
|
|
it_behaves_like 'access_tokenable'
|
2022-07-21 17:27:12 +00:00
|
|
|
it_behaves_like 'avatarable'
|
2021-01-14 15:05:22 +00:00
|
|
|
end
|
2020-03-05 20:13:12 +00:00
|
|
|
end
|