Sha256: 0cdd85b096a73eedbce4a7c9de371b7485654198538bec8fd43a3e6b5c2d222d
Contents?: true
Size: 386 Bytes
Versions: 19
Compression:
Stored size: 386 Bytes
Contents
require 'rails_helper' describe LHS::Item do before do class Record < LHS::Record end end subject { Record.new } context 'add error' do it 'allows to add validation errors to the instance itself' do subject.errors.add(:name, 'This date is invalid') expect( subject.errors.first ).to eq ['name', 'This date is invalid'] end end end
Version data entries
19 entries across 19 versions & 1 rubygems