Sha256: 0f3183fa1b71b52779a44e83b79718c2b67428093e6d2cd255c4e722b1df9c7f
Contents?: true
Size: 305 Bytes
Versions: 2
Compression:
Stored size: 305 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' RSpec.describe Shoulda::Matchers::ActiveModel::RequireAValidCpfMatcher do subject { User.new } it { is_expected.to require_a_valid_cpf(:cpf) } it { is_expected.to require_a_valid_cpf } it { is_expected.not_to require_a_valid_cpf(:name) } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
validates_cpf-3.1.0 | spec/shoulda/matchers/active_model/require_a_valid_cpf_matcher_spec.rb |
validates_cpf-3.0.0 | spec/shoulda/matchers/active_model/require_a_valid_cpf_matcher_spec.rb |