Chatwoot/spec/models/agent_bot_inbox_spec.rb

14 lines
356 B
Ruby
Raw Normal View History

require 'rails_helper'
RSpec.describe AgentBotInbox, type: :model do
describe 'validations' do
it { is_expected.to validate_presence_of(:inbox_id) }
it { is_expected.to validate_presence_of(:agent_bot_id) }
end
describe 'associations' do
it { is_expected.to belong_to(:agent_bot) }
it { is_expected.to belong_to(:inbox) }
end
end