Skip to content

Commit

Permalink
fix existing test
Browse files Browse the repository at this point in the history
  • Loading branch information
abdellani committed Oct 19, 2023
1 parent a6d0335 commit c1e611a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/invoice/data_presenter/line_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def display_amount_with_adjustments_and_with_taxes
end

def single_display_amount_with_adjustments
Spree::Money.new(price_with_adjustments - (included_tax/quantity), currency:)
Spree::Money.new(price_with_adjustments - (included_tax / quantity), currency:)
end

def display_line_items_taxes(display_zero: true)
Expand Down
1 change: 1 addition & 0 deletions spec/jobs/bulk_invoice_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
let(:order_ids) { [order1.id, order2.id, order3.id] }
let(:path){ "/tmp/file/path.pdf" }
before do
allow(TermsOfServiceFile).to receive(:current_url).and_return("http://example.com/terms.pdf")
order3.cancel
order3.resume
end
Expand Down

0 comments on commit c1e611a

Please sign in to comment.