Add system specs for site settings (#209)

This commit is contained in:
Riccardo Graziosi
2023-04-12 18:35:39 +02:00
committed by GitHub
parent ce21d660d1
commit 1e6eb17af5
25 changed files with 673 additions and 111 deletions

View File

@@ -21,6 +21,14 @@ RSpec.configure do |config|
Current.tenant = FactoryBot.create(:tenant)
end
# Compile fresh assets before system specs (needed to get the changes)
# If you're in development and this slows you down, comment it out
# and use ./script/rspec-compile-assets.sh only when needed
config.before(:all, type: :system, js: true) do
Rails.application.load_tasks
Rake::Task["assets:precompile"].invoke("--silent")
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.