Sha256: 349787cf1865821f2ee2862a533dcfb7c9b5e8d0f739dba9a642cd158a2c3ac0
Contents?: true
Size: 432 Bytes
Versions: 4
Compression:
Stored size: 432 Bytes
Contents
require 'spec_helper' require 'shoulda-matchers' describe Shoulda::Matchers::ActiveModel::RequireAValidCpfMatcher do before :each do @user = User.new end it 'should accept on cpf' do @user.should require_a_valid_cpf(:cpf) end it 'should accept without a specified attribute' do @user.should require_a_valid_cpf end it 'should reject on name' do @user.should_not require_a_valid_cpf(:name) end end
Version data entries
4 entries across 4 versions & 1 rubygems