|
114 | 114 | end |
115 | 115 | end |
116 | 116 |
|
117 | | - describe '#lcnpj' do |
| 117 | + describe '#lcnpj_cpf' do |
118 | 118 | before do |
119 | 119 | subject.render |
120 | 120 | FileUtils.rm_f(output_pdf) |
|
138 | 138 | it 'renders a box with a formated CNPJ to the pdf' do |
139 | 139 | expect(File.exist?(output_pdf)).to be_falsey |
140 | 140 |
|
141 | | - subject.lcnpj 0.80, 3.94, 0.75, 1.85, xml, 'transporta/CNPJ' |
| 141 | + subject.lcnpj_cpf 0.80, 3.94, 0.75, 1.85, xml, 'transporta/CNPJ' |
142 | 142 | subject.render_file output_pdf |
143 | 143 |
|
144 | | - expect("#{base_dir}document#lcnpj-valid.pdf").to have_same_content_of file: output_pdf |
| 144 | + expect("#{base_dir}document#lcnpj_cpf-valid.pdf").to have_same_content_of file: output_pdf |
145 | 145 | end |
146 | 146 | end |
147 | 147 |
|
|
163 | 163 | it 'renders a blank box to the pdf' do |
164 | 164 | expect(File.exist?(output_pdf)).to be_falsey |
165 | 165 |
|
166 | | - subject.lcnpj 0.80, 3.94, 0.75, 1.85, xml, 'transporta/CNPJ' |
| 166 | + subject.lcnpj_cpf 0.80, 3.94, 0.75, 1.85, xml, 'transporta/CNPJ' |
167 | 167 | subject.render_file output_pdf |
168 | 168 |
|
169 | | - expect("#{base_dir}document#lcnpj-invalid.pdf").to have_same_content_of file: output_pdf |
| 169 | + expect("#{base_dir}document#lcnpj_cpf-invalid.pdf").to have_same_content_of file: output_pdf |
170 | 170 | end |
171 | 171 | end |
172 | 172 |
|
|
187 | 187 | it 'renders a blank box to the pdf' do |
188 | 188 | expect(File.exist?(output_pdf)).to be_falsey |
189 | 189 |
|
190 | | - subject.lcnpj 0.80, 3.94, 0.75, 1.85, xml, 'transporta/CNPJ' |
| 190 | + subject.lcnpj_cpf 0.80, 3.94, 0.75, 1.85, xml, 'transporta/CNPJ' |
191 | 191 | subject.render_file output_pdf |
192 | 192 |
|
193 | | - expect("#{base_dir}document#lcnpj-blank.pdf").to have_same_content_of file: output_pdf |
| 193 | + expect("#{base_dir}document#lcnpj_cpf-blank.pdf").to have_same_content_of file: output_pdf |
194 | 194 | end |
195 | 195 | end |
196 | 196 | end |
|
0 commit comments