From f96cb010150fa9b9dc11b8e5ff2d438f67ca5070 Mon Sep 17 00:00:00 2001 From: Stuart Frost Date: Sat, 5 Aug 2023 19:28:58 +0100 Subject: [PATCH] Ensure test cleanup occurs --- spec/ameba/config_spec.cr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/ameba/config_spec.cr b/spec/ameba/config_spec.cr index 8e5dbb88..036c458f 100644 --- a/spec/ameba/config_spec.cr +++ b/spec/ameba/config_spec.cr @@ -16,11 +16,12 @@ module Ameba config.globs.should eq ["**/*.cr"] end - it "only sets !lib as a default glob when there are .cr files in lib" do + it "sets !lib as a default glob when there are .cr files in lib" do File.touch "lib/shard.cr" yml = YAML.parse "{}" config = Config.new(yml) config.globs.should eq ["**/*.cr", "!lib"] + ensure File.delete "lib/shard.cr" end end