-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1128 from internetee/fix-pdf-invoice-download
Fix syntax error
- Loading branch information
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |