Sha256: 1e7f91c2d7382e02441000d641464fff5d72794c09892c7435211a01e6e530a2
Contents?: true
Size: 497 Bytes
Versions: 10
Compression:
Stored size: 497 Bytes
Contents
require 'spec_helper' describe Arpa::Validators::ProfileValidator, type: :validator, fast: true do let(:profile) { double name: '', description: '', role_ids: [] } subject { Arpa::Validators::ProfileValidator.new profile } before { subject.valid? } context 'when require' do it { expect(subject.errors).to be_added(:name, :blank) } it { expect(subject.errors).to be_added(:description, :blank) } it { expect(subject.errors).to be_added(:role_ids, :many_blank) } end end
Version data entries
10 entries across 10 versions & 1 rubygems