From 4a4fb1d0afb5399cb313f875c8cbbf80640dd05f Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Thu, 2 Nov 2023 21:10:29 +0900 Subject: [PATCH] Add a project spec Follow up https://github.com/rubocop/rubocop/pull/12319 --- spec/project_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/project_spec.rb b/spec/project_spec.rb index 4e13ca893a..a967b1e9fc 100644 --- a/spec/project_spec.rb +++ b/spec/project_spec.rb @@ -258,6 +258,10 @@ dir = File.expand_path('../changelog', __dir__) + it 'will not have a directory' do + expect(Dir["#{dir}/*"].none? { |path| File.directory?(path) }).to be(true) + end + Dir["#{dir}/*.md"].each do |path| context "For #{path}" do let(:path) { path }