Sha256: 499c25586f8f8e481701780b1939ce4dc5fe9a9985acc9f5d04d226c486b21bd
Contents?: true
Size: 1.24 KB
Versions: 6
Compression:
Stored size: 1.24 KB
Contents
# -*- coding: utf-8 -*- require 'spec_helper' describe "abrasf_1_0/consultar_nfse.json" do let(:file) do File.join($ROOT, 'lib', 'rnfse', 'api', 'abrasf_1_0', 'consultar_nfse.json') end describe "#/" do it 'deveria validar os parametros mÃnimos' do expect(JSON::Validator.fully_validate(file, <<-'JSON')).to be_empty { "prestador": { "cnpj": "12.552.510/0001-50", "inscricaoMunicipal": "68" } } JSON end it 'deveria validar os parametros completos' do expect(JSON::Validator.fully_validate(file, <<-'JSON')).to be_empty { "prestador": { "cnpj": "12.552.510/0001-50", "inscricaoMunicipal": "68" }, "numeroNfse": 201400000000001, "dataInicial": "2013-04-21T21:42:42-03:00", "dataFinal": "2014-04-21T21:42:42-03:00", "tomador": { "cnpj": "38.421.846/0001-78", "inscricaoMunicipal": "12345679" }, "intermediarioServico": { "razaoSocial": "Black Mesa Research Facility", "cnpj": "62.894.995/0001-39", "inscricaoMunicipal": "12345670" } } JSON end end end
Version data entries
6 entries across 6 versions & 1 rubygems