Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove more hard coded things

  • Loading branch information...
commit ff0d24e32f99bf785a1d171040d3b771cfa8722c 1 parent 82f0aa2
@rafaelss authored
View
18 lib/nfe/template/ender_dest.mustache
@@ -1,12 +1,12 @@
<enderDest>
- <xLgr>RUA PARAIBA</xLgr>
- <nro>73</nro>
- <xBairro>BRAS</xBairro>
- <cMun>3550308</cMun>
- <xMun>Sao Paulo</xMun>
- <UF>SP</UF>
- <CEP>03013030</CEP>
+ <xLgr>{{x_lgr}}</xLgr>
+ <nro>{{nro}}</nro>
+ <xBairro>{{x_bairro}}</xBairro>
+ <cMun>{{c_mun}}</cMun>
+ <xMun>{{x_mun}}</xMun>
+ <UF>{{uf}}</UF>
+ <CEP>{{cep}}</CEP>
<cPais>1058</cPais>
- <xPais>BRASIL</xPais>
- <fone>1122910590</fone>
+ <xPais>{{x_pais}}</xPais>
+ <fone>{{fone}}</fone>
</enderDest>
View
2  spec/nfe/template/ender_dest_spec.rb
@@ -1,7 +1,7 @@
require "spec_helper"
describe Nfe::Template::EnderDest do
- let(:view) { described_class.new }
+ let(:view) { ender_dest }
context "rendering" do
subject { view.render }
Please sign in to comment.
Something went wrong with that request. Please try again.