1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/spec/models/account_telegram_contact_spec.rb

20 lines
406 B
Ruby

# frozen_string_literal: true
require 'rails_helper'
RSpec.describe AccountTelegramContact do
it { is_expected.to belong_to :account }
it { is_expected.to belong_to :telegram_chat }
it do
is_expected.to \
validate_presence_of(:account)
.with_message(:required)
end
it do
is_expected.to \
validate_presence_of(:telegram_chat)
.with_message(:required)
end
end