From cdb9ec6c3eafa25bb36d8f1a0a70bf97edc14420 Mon Sep 17 00:00:00 2001 From: Faizaan Gagan Date: Mon, 3 May 2021 04:19:27 +0530 Subject: [PATCH] remove the directory after spec run --- spec/extensions/sprockets_directive_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/extensions/sprockets_directive_spec.rb b/spec/extensions/sprockets_directive_spec.rb index c5eec7a0..d268fd1d 100644 --- a/spec/extensions/sprockets_directive_spec.rb +++ b/spec/extensions/sprockets_directive_spec.rb @@ -36,7 +36,7 @@ describe "Sprockets: require_tree_discourse directive" do File.new(path, 'w') File.write(path, file_contents) yield block if block_given? - File.delete(path) + FileUtils.rm_r(dir) end it "includes assets from the discourse core" do