Fix rubocop issues

This commit is contained in:
Luis Ramos
2020-06-22 13:03:18 +01:00
parent 6eebb0e399
commit 473fee19eb
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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