mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 03:07:52 +01:00
Fix system specs (#206)
This commit is contained in:
committed by
GitHub
parent
756d6d9919
commit
ce21d660d1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user