spec/features/danfe_spec.rb in br_danfe-0.0.9 vs spec/features/danfe_spec.rb in br_danfe-0.2.0

- old
+ new

@@ -2,11 +2,11 @@ describe BrDanfe::Danfe do let(:output_pdf) { "#{base_dir}output.pdf" } describe "#render_pdf" do - let(:base_dir) { "./spec/fixtures/v3.10/"} + let(:base_dir) { "./spec/fixtures/nfe/v3.10/"} it "renders a Simples Nacional NF-e using CSOSN" do danfe = BrDanfe::Danfe.new(File.read("#{base_dir}nfe_simples_nacional.xml")) expected = IO.binread("#{base_dir}nfe_simples_nacional.xml.fixture.pdf") @@ -15,11 +15,11 @@ end end describe "#save_pdf" do context "when xml's version is v2.00" do - let(:base_dir) { "./spec/fixtures/v2.00/"} + let(:base_dir) { "./spec/fixtures/nfe/v2.00/"} before { File.delete(output_pdf) if File.exist?(output_pdf) } it "renders a basic NF-e with namespace" do expect(File.exist?(output_pdf)).to be_falsey @@ -66,10 +66,10 @@ expect("#{base_dir}nfe_with_extra_volumes.xml.fixture.pdf").to have_same_content_of file: output_pdf end end context "when xml's version is v3.10" do - let(:base_dir) { "./spec/fixtures/v3.10/"} + let(:base_dir) { "./spec/fixtures/nfe/v3.10/"} before { File.delete(output_pdf) if File.exist?(output_pdf) } it "renders a Simples Nacional NF-e using CSOSN" do expect(File.exist?(output_pdf)).to be_falsey