Add Site settings > General (#133)

This commit is contained in:
Riccardo Graziosi
2022-07-18 10:47:54 +02:00
committed by GitHub
parent bdc4004e4a
commit 35831b9801
99 changed files with 2405 additions and 281 deletions

View File

@@ -14,6 +14,16 @@
#
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config|
# Reset Current instance and delete all tenants from test db
# Create a new default tenant and set Current.tenant
config.before(:all) do
Current.reset
Tenant.delete_all
tenant = FactoryBot.create(:tenant)
Current.tenant = tenant
end
# rspec-expectations config goes here. You can use an alternate
# assertion/expectation library such as wrong or the stdlib/minitest
# assertions if you prefer.