Sha256: 33a6873a409c74e8c17fb178551597ba717748f144f5e127948799acbaba22ff
Contents?: true
Size: 442 Bytes
Versions: 5
Compression:
Stored size: 442 Bytes
Contents
require 'spec_helper' require 'remarkable/active_model' describe Remarkable::ActiveModel::Matchers::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
5 entries across 5 versions & 1 rubygems