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