mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-11-20 18:40:37 -05:00
Add tests for billing time, OAuth, patches and helpers
BillIssueTimeJob (hours by activity, partial failure and retry, quoted item names), the QuickBooks connection and token refresh, the business report's periods and database figures, the Redmine page patches and hooks (issue page, form, history, issue list column and filter, billed time, user employee, bill/share links, issue PDF with its estimate, activity), RefundGateway, the refund email and PDF, the services' query string and emailing, invoice lines' LinkedTxn, combined PDFs, invoice attachment, and the plugin settings page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
da82f7e12c
commit
17f24f9641
6 files changed
+823
No files matched your search
@@ -131,6 +131,16 @@ class QboAdminPagesTest < Redmine::IntegrationTest
|
||||
end
|
||||
end
|
||||
|
||||
def test_plugin_settings_page
|
||||
RedmineQboBilling::Company.stubs(:settings).returns(custom_fields: [{ id: 1, name: 'Sales Rep' }, { id: 2, name: 'VIN' }])
|
||||
QboSyncStatus.queued('Invoice')
|
||||
admin
|
||||
get '/settings/plugin/redmine_qbo'
|
||||
assert_response :success
|
||||
assert_match "grantUrl: '/qbo/authenticate'", response.body
|
||||
assert_select 'body', text: /VIN/
|
||||
end
|
||||
|
||||
# ---- business report ----
|
||||
|
||||
def test_report_needs_the_permission
|
||||
|
||||
Reference in new issue
Block a user