Chatwoot/spec/models/webhook_spec.rb
2020-02-14 23:19:17 +05:30

13 lines
346 B
Ruby

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