Sha256: f10da70ff203c18715c1446ce02adb97b6647b363500037f0965f735fb5ea921

Contents?: true

Size: 392 Bytes

Versions: 1

Compression:

Stored size: 392 Bytes

Contents

require 'spec_helper'

describe ReferenceUnit do
  it { is_expected.to be_kind_of Unico::ReferenceUnit }

  it { is_expected.to validate_presence_of(:name) }
  it { is_expected.to validate_presence_of(:acronym) }

  it { is_expected.to validate_length_of(:acronym).is_at_most(30) }

  it 'returns acronym when call to_s' do
    subject.name = 'M'
    expect(subject.to_s).to eq 'M'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unico-training-7.8.0 spec/models/reference_unit_spec.rb