Skip to content

Commit

Permalink
remove unecessary instructions from "Check display on each invoice: l…
Browse files Browse the repository at this point in the history
…egacy and alternative"
  • Loading branch information
abdellani committed Oct 26, 2023
1 parent 615bfda commit a425996
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions spec/system/admin/invoice_print_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,9 @@
user: create(:user, email: "[email protected]"),
bill_address: create(:address, phone: '1234567890'))
end
let(:url_params) {
if OpenFoodNetwork::FeatureToggle.enabled?(:invoices)
{ invoice_id: completed_order.invoices.first.id }
else
{}
end
}
let(:url_params) {{}}

before do
completed_order.invoices.create!
allow(Spree::Config).to receive(:invoice_style2?).and_return(alternative_invoice)
login_as_admin
visit spree.print_admin_order_path(completed_order, params: url_params)
Expand Down

0 comments on commit a425996

Please sign in to comment.