mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +02:00
Merge pull request #1128 from internetee/fix-pdf-invoice-download
Fix syntax error
This commit is contained in:
commit
4c5d4979f2
3 changed files with 27 additions and 1 deletions
|
@ -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?
|
||||
|
|
13
test/integration/admin_area/invoices_test.rb
Normal file
13
test/integration/admin_area/invoices_test.rb
Normal 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
|
13
test/integration/registrar_area/invoices_test.rb
Normal file
13
test/integration/registrar_area/invoices_test.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue