mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-11-20 18:40:37 -05:00
Add controller and job tests
Integration tests for every controller: permissions, the estimate and invoice editors (drafts, save and send, conflicts, the linked-estimate and paid-invoice unlocks), payments, drafts, customers and share links, estimate/invoice PDFs for share-link customers, items, accounts, the business report, and QboController (OAuth state check, webhook signature, manual billing). Unit tests for the webhook job, the sync dispatcher and QboSyncJob. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9ed3ef23fb
commit
da82f7e12c
11 files changed
+1310
No files matched your search
@@ -72,6 +72,7 @@ class CustomerSearchServiceTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
def test_call_returns_customers_best_first
|
||||
CustomerSearchService.instance_variable_set(:@candidates, nil)
|
||||
Customer.where(id: [9101, 9102]).delete_all
|
||||
[[9101, 'William Smith'], [9102, 'Bill Smithers']].each do |id, name|
|
||||
Customer.new(id: id, name: name).tap { |c| c.skip_qbo_push = true }.save!
|
||||
|
||||
Reference in new issue
Block a user