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