Fix syntax error

This commit is contained in:
Artur Beljajev 2019-03-26 10:41:57 +02:00
parent 7789ccff6f
commit 2a57fb832d
3 changed files with 27 additions and 1 deletions

View file

@ -153,7 +153,7 @@
- if @invoice.cancelled?
%dt= Invoice.human_attribute_name :cancelled_at
%dd= l @invoice.cancelled_at,
%dd= l @invoice.cancelled_at
%dt= t(:due_date)
- if @invoice.cancelled?

View file

@ -0,0 +1,13 @@
require 'test_helper'
class AdminAreaInvoicesIntegrationTest < ApplicationIntegrationTest
setup do
@invoice = invoices(:one)
sign_in users(:admin)
end
def test_download_invoice_pdf
get admin_invoice_download_pdf_path(@invoice)
assert_response :ok
end
end

View file

@ -0,0 +1,13 @@
require 'test_helper'
class RegistrarAreaInvoicesIntegrationTest < ApplicationIntegrationTest
setup do
@invoice = invoices(:one)
sign_in users(:api_bestnames)
end
def test_download_invoice_pdf
get download_pdf_registrar_invoice_path(@invoice)
assert_response :ok
end
end