Sha256: 6fb03b01bd61efbed2e1b8ff84ce7615795be3fc6ccec1e168f5adba827d5058
Contents?: true
Size: 420 Bytes
Versions: 1
Compression:
Stored size: 420 Bytes
Contents
require 'spec_helper' describe StreetType do it { is_expected.to be_a_kind_of InscriptioCursualis::StreetType } it { is_expected.to have_many(:streets).dependent(:restrict_with_exception) } it { is_expected.to validate_presence_of :name } it { is_expected.to validate_presence_of :acronym } it 'cast to string using name' do subject.name = 'Avenida' expect(subject.to_s).to eq 'Avenida' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unico-training-7.8.0 | spec/models/street_type_spec.rb |