spec/cpf_spec.rb in brid-0.2.0 vs spec/cpf_spec.rb in brid-0.2.1
- old
+ new
@@ -7,7 +7,8 @@
it { CPF.new('009.147.274-10').should_not be_valid }
it { CPF.new('000.000.000-00').should_not be_valid }
it { CPF.new('111.111.111-11').should_not be_valid }
- it { lambda { CPF.new('foobar') }.should raise_error(ArgumentError)}
+ it { CPF.new('foobar').should_not be_valid }
+
end