Sha256: 177776fe6aee3352367027d25c76786b889746fe99eea4ac224a6afef877726e
Contents?: true
Size: 410 Bytes
Versions: 10
Compression:
Stored size: 410 Bytes
Contents
require 'spec_helper' describe Arpa::Validators::ActionValidator, type: :validator, fast: true do let(:action) { double name: '', resource_id: nil } subject { Arpa::Validators::ActionValidator.new action } before { subject.valid? } context 'when require' do it { expect(subject.errors).to be_added(:name, :blank) } it { expect(subject.errors).to be_added(:resource_id, :blank) } end end
Version data entries
10 entries across 10 versions & 1 rubygems