Skip to content

Comments

Add support for RSpec 4#422

Merged
mbj merged 6 commits intombj:mainfrom
sferik:rspec-4
Feb 22, 2026
Merged

Add support for RSpec 4#422
mbj merged 6 commits intombj:mainfrom
sferik:rspec-4

Conversation

@sferik
Copy link
Contributor

@sferik sferik commented Feb 20, 2026

  • Remove --color from .rspec (removed in RSpec 4)
  • Replace bare describe with RSpec.describe at top level
  • Replace it_should_behave_like with it_behaves_like
  • Replace should/should_not with is_expected.to/is_expected.not_to

@sferik sferik force-pushed the rspec-4 branch 3 times, most recently from ec44c0c to b2208b5 Compare February 20, 2026 13:26
@sferik sferik changed the title Update to RSpec 4 Add support for RSpec 4 Feb 20, 2026
@sferik sferik force-pushed the rspec-4 branch 2 times, most recently from 1384882 to 07b4b47 Compare February 21, 2026 14:07
@sferik sferik force-pushed the rspec-4 branch 3 times, most recently from 1908539 to 7845cdc Compare February 22, 2026 19:26
This caused two failures in the latest version of RuboCop, which are
also corrected in this commit. Also, fix parser round trip test ordering
bug and exclude character_literal fixture.
* Remove --color from .rspec (removed in RSpec 4)
* Replace bare `describe` with `RSpec.describe` at top level
* Replace `it_should_behave_like` with `it_behaves_like`
* Replace `should`/`should_not` with `is_expected.to`/`is_expected.not_to`
@mbj mbj merged commit 7a28b13 into mbj:main Feb 22, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants