Ensure test cleanup occurs

This commit is contained in:
Stuart Frost 2023-08-05 19:28:58 +01:00
parent 1b85ba6f22
commit f96cb01015
1 changed files with 2 additions and 1 deletions

View File

@ -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