From 98b043f3eaaab48d0d0e971b03c6e3e3c80e1659 Mon Sep 17 00:00:00 2001 From: Corey Carvalho Date: Sat, 1 May 2021 17:10:23 -0400 Subject: [PATCH] Processes site when writing files --- lib/jekyll-admin/file_helper.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/jekyll-admin/file_helper.rb b/lib/jekyll-admin/file_helper.rb index 573d509be..f7a16733f 100644 --- a/lib/jekyll-admin/file_helper.rb +++ b/lib/jekyll-admin/file_helper.rb @@ -22,12 +22,7 @@ def write_file(path, content) File.open(path, "wb") do |file| file.write(content) end - # we should fully process in dev mode for tests to pass - if ENV["RACK_ENV"] == "production" - site.read - else - site.process - end + site.process end # Delete the file at the given path