Fix system specs (#206)

This commit is contained in:
Riccardo Graziosi
2023-03-19 19:57:53 +01:00
committed by GitHub
parent 756d6d9919
commit ce21d660d1
19 changed files with 193 additions and 202 deletions

View File

@@ -17,9 +17,8 @@ RSpec.configure do |config|
ENV["RAILS_ENV"] = "test"
# Set tenant before each test
config.before(:all) do
# Current.reset
Current.tenant = Tenant.first_or_create(site_name: 'test', subdomain: 'test')
config.before(:each) do
Current.tenant = FactoryBot.create(:tenant)
end
# rspec-expectations config goes here. You can use an alternate