Sha256: ba5556d9e7b042e1ad24d62f46badc33a2f79cd323965ccac262418205603e10
Contents?: true
Size: 612 Bytes
Versions: 1
Compression:
Stored size: 612 Bytes
Contents
require 'spec_helper' describe CreditorBankAccount do it { is_expected.to belong_to :creditor } it { is_expected.to belong_to :agency } it { is_expected.to validate_presence_of :creditor } it { is_expected.to validate_presence_of :agency } it { is_expected.to validate_presence_of :status } it { is_expected.to validate_presence_of :account_type } it { is_expected.to validate_presence_of :digit } it { is_expected.to validate_presence_of :number } it 'should return number-digit as to_s' do subject.number = 1234 subject.digit = 1 expect(subject.to_s).to eq '1234-1' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unico-training-7.8.0 | spec/models/creditor_bank_account_spec.rb |