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

Version Path
arpa-0.2.0 spec/lib/arpa/validators/action_validator_spec.rb
arpa-0.1.0 spec/lib/arpa/validators/action_validator_spec.rb
arpa-0.0.9 spec/lib/arpa/validators/action_validator_spec.rb
arpa-0.0.8 spec/lib/ar/validators/action_validator_spec.rb
arpa-0.0.7 spec/lib/ar/validators/action_validator_spec.rb
arpa-0.0.6 spec/lib/ar/validators/action_validator_spec.rb
arpa-0.0.5 spec/lib/ar/validators/action_validator_spec.rb
arpa-0.0.4 spec/lib/ar/validators/action_validator_spec.rb
arpa-0.0.3 spec/lib/ar/validators/action_validator_spec.rb
arpa-0.0.2 spec/lib/ar/validators/action_validator_spec.rb