Skip to content

Commit c948e27

Browse files
author
Reem Ibrahim
committed
rubocop
1 parent 0a13b11 commit c948e27

3 files changed

Lines changed: 14 additions & 6 deletions

File tree

app/models/workday/submit_reversal_invoice_adjustment.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ def initialize(submission, user = nil)
1515
attr_reader :user
1616

1717
def line_item_description
18+
# rubocop:disable Layout/LineLength
1819
"Reversal of invoice #{submission.invoice_details[:invoice_number]} adjustment for #{task_period_in_words} management charge"
20+
# rubocop:enable Layout/LineLength
1921
end
2022

2123
def total_spend

spec/models/workday/submit_reversal_invoice_adjustment_spec.rb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,12 @@
2828
invoice_date: '2018-12-31-00:00',
2929
invoice_number: 'CINV-00000001',
3030
payment_status: 'Paid'
31-
})
32-
33-
allow(Workday::CustomerInvoice).to receive(:new).with(submission_invoice.workday_reference).and_return(customer_invoice)
31+
}
32+
)
33+
34+
# rubocop:disable Layout/LineLength
35+
allow(Workday::CustomerInvoice).to receive(:new).with(submission_invoice.workday_reference).and_return(customer_invoice)
36+
# rubocop:enable Layout/LineLength
3437
end
3538

3639
it_behaves_like 'a workday request'

spec/models/workday/submit_reversal_invoice_spec.rb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,12 @@
2828
invoice_date: '2018-12-31-00:00',
2929
invoice_number: 'CINV-00000001',
3030
payment_status: 'Paid'
31-
})
32-
33-
allow(Workday::CustomerInvoice).to receive(:new).with(submission_invoice.workday_reference).and_return(customer_invoice)
31+
}
32+
)
33+
34+
# rubocop:disable Layout/LineLength
35+
allow(Workday::CustomerInvoice).to receive(:new).with(submission_invoice.workday_reference).and_return(customer_invoice)
36+
# rubocop:enable Layout/LineLength
3437
end
3538

3639
it_behaves_like 'a workday request'

0 commit comments

Comments
 (0)