Sha256: 9d33c1fe667c86cc112d6ff0c48c6c849beaf9d610090c6ad8d774156a94957a
Contents?: true
Size: 463 Bytes
Versions: 5
Compression:
Stored size: 463 Bytes
Contents
require 'spec_helper' require 'remarkable/active_model' describe Remarkable::ActiveModel::Matchers::RequireAValidCnpjMatcher do before :each do @company = Company.new end it "should accept on cnpj" do @company.should require_a_valid_cnpj(:cnpj) end it "should accept without a specified attribute" do @company.should require_a_valid_cnpj end it "should reject on name" do @company.should_not require_a_valid_cnpj(:name) end end
Version data entries
5 entries across 5 versions & 1 rubygems