Chatwoot/spec/models/webhook_spec.rb

12 lines
244 B
Ruby
Raw Permalink Normal View History

2020-02-14 17:49:17 +00:00
require 'rails_helper'
RSpec.describe Webhook, type: :model do
describe 'validations' do
it { is_expected.to validate_presence_of(:account_id) }
end
describe 'associations' do
it { is_expected.to belong_to(:account) }
end
end