fix: minor foo

This commit is contained in:
Philipp Rothmann 2023-01-02 13:05:43 +01:00
parent 18358484ba
commit 619fdbe958
4 changed files with 10 additions and 8 deletions

View file

@ -91,10 +91,7 @@ describe 'User', type: :request do
response '200', 'success' do
schema type: :object, properties: {
financial_transaction: {
type: :object,
items: {
'$ref': '#/components/schemas/FinancialTransaction'
}
'$ref': '#/components/schemas/FinancialTransaction'
}
}
let(:id) { ft.id }

View file

@ -53,6 +53,7 @@ describe 'User', type: :request do
tags 'User', 'Financial Transaction'
produces 'application/json'
let(:user) { create :user, :ordergroup }
let(:api_scopes) { ['finance:user'] }
FinancialTransactionClass.create(name: 'TestTransaction')
response 200, 'success' do
@ -93,7 +94,6 @@ describe 'User', type: :request do
}
}
let(:api_scopes) { ['finance:user'] }
run_test!
end