Skip to content

Commit 1e84172

Browse files
authored
Merge pull request #9 from danielwestendorf/fix-running-of-specs
Fixes running for specs with modern RSpec installs
2 parents 8a14e6e + 1e7b907 commit 1e84172

833 files changed

Lines changed: 7497 additions & 8024 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ begin
66
task default: :spec
77

88
# Clean up the .bak files generated from awk.
9-
task clean: do
9+
task :clean do
1010
sh "pwsh -File scripts/clean.ps1"
1111
end
1212

1313
# Remove license header in *.rb files.
14-
task format: do
14+
task :format do
1515
sh "pwsh -File scripts/format.ps1"
1616
end
1717

spec/api/accounting_batches_api_spec.rb

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Unit tests for ConnectWise::AccountingBatchesApi
66
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
77
# Please update as you see appropriate
8-
describe 'AccountingBatchesApi' do
8+
RSpec.describe 'AccountingBatchesApi' do
99
before do
1010
# run before each test
1111
@instance = ConnectWise::AccountingBatchesApi.new
@@ -22,10 +22,10 @@
2222
end
2323

2424
# unit tests for finance_accounting_batches_count_get
25-
#
25+
#
2626
# Get Batches Count
2727
# @param [Hash] opts the optional parameters
28-
# @option opts [String] :conditions
28+
# @option opts [String] :conditions
2929
# @return [Count]
3030
describe 'finance_accounting_batches_count_get test' do
3131
it "should work" do
@@ -34,15 +34,15 @@
3434
end
3535

3636
# unit tests for finance_accounting_batches_get
37-
#
37+
#
3838
# Get Batches
3939
# @param [Hash] opts the optional parameters
40-
# @option opts [String] :conditions
41-
# @option opts [String] :order_by
42-
# @option opts [String] :childconditions
43-
# @option opts [String] :customfieldconditions
44-
# @option opts [Integer] :page
45-
# @option opts [Integer] :page_size
40+
# @option opts [String] :conditions
41+
# @option opts [String] :order_by
42+
# @option opts [String] :childconditions
43+
# @option opts [String] :customfieldconditions
44+
# @option opts [Integer] :page
45+
# @option opts [Integer] :page_size
4646
# @return [Array<AccountingBatch>]
4747
describe 'finance_accounting_batches_get test' do
4848
it "should work" do
@@ -51,9 +51,9 @@
5151
end
5252

5353
# unit tests for finance_accounting_batches_id_delete
54-
#
54+
#
5555
# Delete Batch By Id
56-
# @param id
56+
# @param id
5757
# @param [Hash] opts the optional parameters
5858
# @return [nil]
5959
describe 'finance_accounting_batches_id_delete test' do
@@ -63,10 +63,10 @@
6363
end
6464

6565
# unit tests for finance_accounting_batches_id_export_post
66-
#
66+
#
6767
# Re-export the payload data from an existing batch (RecreateBatch in SOAP)
68-
# @param id
69-
# @param batch_export_parameters
68+
# @param id
69+
# @param batch_export_parameters
7070
# @param [Hash] opts the optional parameters
7171
# @return [GLExport]
7272
describe 'finance_accounting_batches_id_export_post test' do
@@ -76,9 +76,9 @@
7676
end
7777

7878
# unit tests for finance_accounting_batches_id_get
79-
#
79+
#
8080
# Get Batch By Id
81-
# @param id
81+
# @param id
8282
# @param [Hash] opts the optional parameters
8383
# @return [AccountingBatch]
8484
describe 'finance_accounting_batches_id_get test' do
@@ -88,9 +88,9 @@
8888
end
8989

9090
# unit tests for finance_accounting_batches_post
91-
#
91+
#
9292
# Creates the Accounting Batch and updates GL Records (UpdateBatch in SOAP)
93-
# @param accounting_batch_parameters
93+
# @param accounting_batch_parameters
9494
# @param [Hash] opts the optional parameters
9595
# @return [GLExport]
9696
describe 'finance_accounting_batches_post test' do
@@ -100,9 +100,9 @@
100100
end
101101

102102
# unit tests for finance_accounting_export_post
103-
#
103+
#
104104
# Exports accouting batch payload based on parameters (CreateBatch in SOAP)
105-
# @param batch_export_parameters
105+
# @param batch_export_parameters
106106
# @param [Hash] opts the optional parameters
107107
# @return [GLExport]
108108
describe 'finance_accounting_export_post test' do

spec/api/accounting_packages_api_spec.rb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Unit tests for ConnectWise::AccountingPackagesApi
66
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
77
# Please update as you see appropriate
8-
describe 'AccountingPackagesApi' do
8+
RSpec.describe 'AccountingPackagesApi' do
99
before do
1010
# run before each test
1111
@instance = ConnectWise::AccountingPackagesApi.new
@@ -22,10 +22,10 @@
2222
end
2323

2424
# unit tests for system_accounting_packages_count_get
25-
#
25+
#
2626
# Get Accounting Packages Count
2727
# @param [Hash] opts the optional parameters
28-
# @option opts [String] :conditions
28+
# @option opts [String] :conditions
2929
# @return [Count]
3030
describe 'system_accounting_packages_count_get test' do
3131
it "should work" do
@@ -34,15 +34,15 @@
3434
end
3535

3636
# unit tests for system_accounting_packages_get
37-
#
37+
#
3838
# Get Accounting Packages
3939
# @param [Hash] opts the optional parameters
40-
# @option opts [String] :conditions
41-
# @option opts [String] :order_by
42-
# @option opts [String] :childconditions
43-
# @option opts [String] :customfieldconditions
44-
# @option opts [Integer] :page
45-
# @option opts [Integer] :page_size
40+
# @option opts [String] :conditions
41+
# @option opts [String] :order_by
42+
# @option opts [String] :childconditions
43+
# @option opts [String] :customfieldconditions
44+
# @option opts [Integer] :page
45+
# @option opts [Integer] :page_size
4646
# @return [Array<AccountingPackage>]
4747
describe 'system_accounting_packages_get test' do
4848
it "should work" do
@@ -51,9 +51,9 @@
5151
end
5252

5353
# unit tests for system_accounting_packages_id_get
54-
#
54+
#
5555
# Get Accounting Package By Id
56-
# @param id
56+
# @param id
5757
# @param [Hash] opts the optional parameters
5858
# @return [AccountingPackage]
5959
describe 'system_accounting_packages_id_get test' do

spec/api/accounting_unposted_expenses_api_spec.rb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Unit tests for ConnectWise::AccountingUnpostedExpensesApi
66
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
77
# Please update as you see appropriate
8-
describe 'AccountingUnpostedExpensesApi' do
8+
RSpec.describe 'AccountingUnpostedExpensesApi' do
99
before do
1010
# run before each test
1111
@instance = ConnectWise::AccountingUnpostedExpensesApi.new
@@ -22,10 +22,10 @@
2222
end
2323

2424
# unit tests for finance_accounting_unpostedexpenses_count_get
25-
#
25+
#
2626
# Get Unposted Expenses Count
2727
# @param [Hash] opts the optional parameters
28-
# @option opts [String] :conditions
28+
# @option opts [String] :conditions
2929
# @return [Count]
3030
describe 'finance_accounting_unpostedexpenses_count_get test' do
3131
it "should work" do
@@ -34,15 +34,15 @@
3434
end
3535

3636
# unit tests for finance_accounting_unpostedexpenses_get
37-
#
37+
#
3838
# Get Unposted Expenses
3939
# @param [Hash] opts the optional parameters
40-
# @option opts [String] :conditions
41-
# @option opts [String] :order_by
42-
# @option opts [String] :childconditions
43-
# @option opts [String] :customfieldconditions
44-
# @option opts [Integer] :page
45-
# @option opts [Integer] :page_size
40+
# @option opts [String] :conditions
41+
# @option opts [String] :order_by
42+
# @option opts [String] :childconditions
43+
# @option opts [String] :customfieldconditions
44+
# @option opts [Integer] :page
45+
# @option opts [Integer] :page_size
4646
# @return [Array<UnpostedExpense>]
4747
describe 'finance_accounting_unpostedexpenses_get test' do
4848
it "should work" do
@@ -51,9 +51,9 @@
5151
end
5252

5353
# unit tests for finance_accounting_unpostedexpenses_id_get
54-
#
54+
#
5555
# Get Unposted Expense By Id
56-
# @param id
56+
# @param id
5757
# @param [Hash] opts the optional parameters
5858
# @return [UnpostedExpense]
5959
describe 'finance_accounting_unpostedexpenses_id_get test' do

spec/api/accounting_unposted_procurements_api_spec.rb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Unit tests for ConnectWise::AccountingUnpostedProcurementsApi
66
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
77
# Please update as you see appropriate
8-
describe 'AccountingUnpostedProcurementsApi' do
8+
RSpec.describe 'AccountingUnpostedProcurementsApi' do
99
before do
1010
# run before each test
1111
@instance = ConnectWise::AccountingUnpostedProcurementsApi.new
@@ -22,10 +22,10 @@
2222
end
2323

2424
# unit tests for finance_accounting_unpostedprocurement_count_get
25-
#
25+
#
2626
# Get Unposted Procurements Count
2727
# @param [Hash] opts the optional parameters
28-
# @option opts [String] :conditions
28+
# @option opts [String] :conditions
2929
# @return [Count]
3030
describe 'finance_accounting_unpostedprocurement_count_get test' do
3131
it "should work" do
@@ -34,15 +34,15 @@
3434
end
3535

3636
# unit tests for finance_accounting_unpostedprocurement_get
37-
#
37+
#
3838
# Get Unposted Procurements
3939
# @param [Hash] opts the optional parameters
40-
# @option opts [String] :conditions
41-
# @option opts [String] :order_by
42-
# @option opts [String] :childconditions
43-
# @option opts [String] :customfieldconditions
44-
# @option opts [Integer] :page
45-
# @option opts [Integer] :page_size
40+
# @option opts [String] :conditions
41+
# @option opts [String] :order_by
42+
# @option opts [String] :childconditions
43+
# @option opts [String] :customfieldconditions
44+
# @option opts [Integer] :page
45+
# @option opts [Integer] :page_size
4646
# @return [Array<UnpostedProcurement>]
4747
describe 'finance_accounting_unpostedprocurement_get test' do
4848
it "should work" do
@@ -51,9 +51,9 @@
5151
end
5252

5353
# unit tests for finance_accounting_unpostedprocurement_id_get
54-
#
54+
#
5555
# Get Unposted Procurement By Id
56-
# @param id
56+
# @param id
5757
# @param [Hash] opts the optional parameters
5858
# @return [UnpostedProcurement]
5959
describe 'finance_accounting_unpostedprocurement_id_get test' do

spec/api/accounting_unpostedinvoices_api_spec.rb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Unit tests for ConnectWise::AccountingUnpostedinvoicesApi
66
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
77
# Please update as you see appropriate
8-
describe 'AccountingUnpostedinvoicesApi' do
8+
RSpec.describe 'AccountingUnpostedinvoicesApi' do
99
before do
1010
# run before each test
1111
@instance = ConnectWise::AccountingUnpostedinvoicesApi.new
@@ -22,10 +22,10 @@
2222
end
2323

2424
# unit tests for finance_accounting_unpostedinvoices_count_get
25-
#
25+
#
2626
# Get Unposted Invoices Count
2727
# @param [Hash] opts the optional parameters
28-
# @option opts [String] :conditions
28+
# @option opts [String] :conditions
2929
# @return [Count]
3030
describe 'finance_accounting_unpostedinvoices_count_get test' do
3131
it "should work" do
@@ -34,15 +34,15 @@
3434
end
3535

3636
# unit tests for finance_accounting_unpostedinvoices_get
37-
#
37+
#
3838
# Get Unposted Invoices
3939
# @param [Hash] opts the optional parameters
40-
# @option opts [String] :conditions
41-
# @option opts [String] :order_by
42-
# @option opts [String] :childconditions
43-
# @option opts [String] :customfieldconditions
44-
# @option opts [Integer] :page
45-
# @option opts [Integer] :page_size
40+
# @option opts [String] :conditions
41+
# @option opts [String] :order_by
42+
# @option opts [String] :childconditions
43+
# @option opts [String] :customfieldconditions
44+
# @option opts [Integer] :page
45+
# @option opts [Integer] :page_size
4646
# @return [Array<UnpostedInvoice>]
4747
describe 'finance_accounting_unpostedinvoices_get test' do
4848
it "should work" do
@@ -51,9 +51,9 @@
5151
end
5252

5353
# unit tests for finance_accounting_unpostedinvoices_id_get
54-
#
54+
#
5555
# Get Unposted Invoice By Id
56-
# @param id
56+
# @param id
5757
# @param [Hash] opts the optional parameters
5858
# @return [UnpostedInvoice]
5959
describe 'finance_accounting_unpostedinvoices_id_get test' do

0 commit comments

Comments
 (0)