Sha256: 275e5495befd7fa6b54e92ff65adc3c5dfc378134363747560dafe87d7044c9e
Contents?: true
Size: 507 Bytes
Versions: 1
Compression:
Stored size: 507 Bytes
Contents
require 'spec_helper' describe OccupationClassification do it { is_expected.to be_a_kind_of Unico::OccupationClassification } it { is_expected.to belong_to(:occupation_base_group) } it { is_expected.to validate_presence_of :name } it { is_expected.to validate_presence_of :code } it 'cast to string using the code and name' do subject.code = '010105' subject.name = 'Oficial General da Aeronáutica' expect(subject.to_s).to eq '010105 - Oficial General da Aeronáutica' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unico-training-7.8.0 | spec/models/occupation_classification_spec.rb |