mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix rubocop issues
This commit is contained in:
@@ -17,7 +17,7 @@ module Api
|
||||
describe "destroy" do
|
||||
it "removes the fee" do
|
||||
expect { spree_delete :destroy, id: unreferenced_fee.id, format: :json }
|
||||
.to change { EnterpriseFee.count }.by -1
|
||||
.to change { EnterpriseFee.count }.by(-1)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -255,7 +255,7 @@ describe Spree::Admin::PaymentsController, type: :controller do
|
||||
expect(payment.reload.state).to eq 'completed'
|
||||
order.reload
|
||||
expect(order.payment_total).to eq order.total + 5
|
||||
expect(order.outstanding_balance).to eq -5
|
||||
expect(order.outstanding_balance).to eq(-5)
|
||||
expect(flash[:error]).to eq "Bup-bow!"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user