fix specs

This commit is contained in:
Pete Matsyburka
2024-10-22 22:52:20 +03:00
parent e2f930f6f7
commit 4332b4ebb8
4 changed files with 28 additions and 22 deletions
+5 -4
View File
@@ -3,10 +3,11 @@
require 'rails_helper'
describe 'Tools API', type: :request do
let!(:account) { create(:account) }
let!(:author) { create(:user, account:) }
let!(:file_path) { Rails.root.join('spec/fixtures/sample-document.pdf') }
let!(:encrypted_config) do
let(:account) { create(:account) }
let(:author) { create(:user, account:) }
let(:file_path) { Rails.root.join('spec/fixtures/sample-document.pdf') }
before do
create(:encrypted_config, key: EncryptedConfig::ESIGN_CERTS_KEY,
value: GenerateCertificate.call.transform_values(&:to_pem))
end