README.rdoc in validates_cnpj-0.1.0 vs README.rdoc in validates_cnpj-0.1.1

- old
+ new

@@ -1,8 +1,8 @@ = ValidatesCNPJ {<img src="https://secure.travis-ci.org/plribeiro3000/validates_cnpj.png" />}[http://travis-ci.org/plribeiro3000/validates_cnpj] -Rails gem to validate CNPJ +Rails gem to validate CNPJ. Don't forget to check {ValidatesCpf}[https://github.com/plribeiro3000/validates_cpf] and {ValidatesTelephone}[https://github.com/plribeiro3000/validates_telephone]. == Install gem install validates_cnpj @@ -14,19 +14,19 @@ validates :cnpj, :cnpj => true end == Test -Only Rspec supported at the moment. The gem already have macros for shoulda-macros and remarkable. +This gem has matchers for shoulda-matchers and remarkable. If you are using shoulda-matchers, add this line to your spec_helper.rb : require "validates_cnpj/shoulda-matchers/validate_as_cnpj_matcher" If you are using remarkable, add this line to your spec_helper.rb : require "validates_cnpj/remarkable/validate_as_cnpj_matcher" === How? You should use validates_as_cnpj(:attribute) just like any other shoulda matcher. -== Special Thanks +== Goal -This project is based on brcpfcnpj gem and his intention it to mantain a cleaner code to validate CNPJ and easy macros to test it. +This project is based on brcpfcnpj gem and his intention it to mantain a cleaner code to validate CNPJ and easy matchers to test it. \ No newline at end of file