mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
DEV: Don't run dev-only code in specs (#23427)
This was causing the following notice to be printed out when running system specs: ``` I did no detect a custom `config/dev.yml` file, creating one for you where you can amend defaults. ``` (since 61571bee43eae88755b5e258e96d03c146f9d2cb)
This commit is contained in:
@ -16,7 +16,7 @@ module DiscourseDev
|
||||
if File.exist?(file_path)
|
||||
user_config = YAML.load_file(file_path, permitted_classes: [Date])
|
||||
else
|
||||
puts "I did no detect a custom `config/dev.yml` file, creating one for you where you can amend defaults."
|
||||
puts "Did not detect `config/dev.yml`, creating one for you where you can amend defaults."
|
||||
FileUtils.cp(default_file_path, file_path)
|
||||
user_config = {}
|
||||
end
|
||||
|
Reference in New Issue
Block a user