Sha256: 16c1951175f869f5a90390450ec27ac42c7a53d15ba2346a59820f73d5a71d85
Contents?: true
Size: 538 Bytes
Versions: 1
Compression:
Stored size: 538 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' RSpec.describe Shoulda::Matchers::ActiveModel::ValidateCnsMatcher do context 'Allow blank' do subject { UserAllowBlank.new } specify { is_expected.to validate_cns(:cns).allow_blank } specify { is_expected.to validate_cns.allow_blank } specify { is_expected.not_to validate_cns(:name) } end context 'Not allow blank' do subject { UserCnsRequired.new } specify { is_expected.to validate_cns(:cns) } specify { is_expected.to validate_cns } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cns_brazil-1.0.4 | spec/shoulda/matchers/active_model/validate_cns_matcher_spec.rb |