Skip to content

Commit

Permalink
Rename an incorrect unreleased entry filename
Browse files Browse the repository at this point in the history
Follow #9167.

This PR adds the following project spec and
renames the incorrect unreleased entry filename of #9167.

```console
% bundle exec rspec spec/project_spec.rb:239

Randomized with seed 30085
.F

Failures:

  1) RuboCop Project Changelog future entries For
  /Users/koic/src/github.com/rubocop-hq/rubocop/spec/../changelog/
support_autocorrect_for_style_single_line_block_params.md
  starts with `new_`, `fix_`, or `change_`
     Failure/Error:
  expect(File.basename(path)).to(match(/\A(new|fix|change)_.+/))

       expected
       "support_autocorrect_for_style_single_line_block_params.md" to
       match /\A(new|fix|change)_.+/
       Diff:
       @@ -1 +1 @@
       -/\A(new|fix|change)_.+/
       +"support_autocorrect_for_style_single_line_block_params.md"

     # ./spec/project_spec.rb:240:in `block (6 levels) in
       <top (required)>'

Finished in 0.01424 seconds (files took 1.53 seconds to load)
2 examples, 1 failure

Failed examples:

rspec './spec/project_spec.rb[1:3:4:2:5]' # RuboCop Project Changelog
future entries For
/Users/koic/src/github.com/rubocop-hq/rubocop/spec/../changelog/
support_autocorrect_for_style_single_line_block_params.md
starts with `new_`, `fix_`, or `change_`
```
  • Loading branch information
koic authored and bbatsov committed Dec 5, 2020
1 parent 620d4cc commit faa3385
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/project_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@
it 'has a link to the contributors at the end' do
expect(entries).to all(match(/\(\[@\S+\]\[\](?:, \[@\S+\]\[\])*\)$/))
end

it 'starts with `new_`, `fix_`, or `change_`' do
expect(File.basename(path)).to(match(/\A(new|fix|change)_.+/))
end
end
end
end
Expand Down

0 comments on commit faa3385

Please sign in to comment.