مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-12-01 05:43:04 +00:00
test: add tests for the legacy API
هذا الالتزام موجود في:
@@ -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
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم