1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-12-01 05:43:04 +00:00

test: add tests for the legacy API

هذا الالتزام موجود في:
Adam Cooke
2024-03-13 18:18:14 +00:00
ملتزم من قبل Adam Cooke
الأصل 1c67f72209
التزام 3d208d632f
6 ملفات معدلة مع 784 إضافات و3 حذوفات

عرض الملف

@@ -37,9 +37,16 @@ RSpec.configure do |config|
config.include FactoryBot::Syntax::Methods
config.include GeneralHelpers
# Before all request specs, set the hostname to the web hostname for
# Postal otherwise it'll be www.example.com which will fail host
# authorization checks.
config.before(:each, type: :request) do
host! Postal::Config.postal.web_hostname
end
# Test that the factories are working as they should and then clean up before getting started on
# the rest of the suite.
config.before(:suite) do
# Test that the factories are working as they should and then clean up before getting started on
# the rest of the suite.
DatabaseCleaner.start
FactoryBot.lint
ensure