mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 03:07:52 +01:00
Add Site settings > General (#133)
This commit is contained in:
committed by
GitHub
parent
bdc4004e4a
commit
35831b9801
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user