Rakefile in br_danfe-0.0.1 vs Rakefile in br_danfe-0.0.2
- old
+ new
@@ -30,9 +30,16 @@
namespace :fixtures do
desc "Recreate all pdfs fixtures. Use this task always that output pdf format is changed."
task :recreate_pdfs do
Dir["spec/fixtures/nfe*.xml"].each do |f|
puts "Recreating #{f}.fixture.pdf"
+
+ if File.exist?("#{f}.logo.png")
+ BrDanfe.options.logo_path = "#{f}.logo.png"
+ else
+ BrDanfe.options.logo_path = ""
+ end
+
BrDanfe.generate("#{f}.fixture.pdf", "#{f}")
end
end
end
end