Permalink
Browse files

adicionando um teste que verifica se o numero retorna nil se tiver na…

… black list
  • Loading branch information...
herminiotorres committed Aug 26, 2010
1 parent 74b4c81 commit 19c05d325c416e5b6f22921f034b20d2d2f24c99
Showing with 8 additions and 0 deletions.
  1. +8 −0 spec/cpf_spec.rb
View
@@ -0,0 +1,8 @@
+require "spec/../lib/cpf"
+
+describe Cpf, "CPF_BLACK_LIST" do
+ it "return nil if number in list cpf black list" do
+ cpf = Cpf.new(11111111111)
+ cpf.numero.should == nil
+ end
+end

0 comments on commit 19c05d3

Please sign in to comment.