Skip to content

Replace it_should_behave_like with it_behaves_like#288

Merged
yahonda merged 1 commit intorsim:masterfrom
yahonda:replace-it-should-behave-like
May 7, 2026
Merged

Replace it_should_behave_like with it_behaves_like#288
yahonda merged 1 commit intorsim:masterfrom
yahonda:replace-it-should-behave-like

Conversation

@yahonda
Copy link
Copy Markdown
Collaborator

@yahonda yahonda commented May 7, 2026

Summary

  • rspec-core removed the it_should_behave_like alias in commit 0f6a94ab ("Remove it_should_behave_like"), merged via rspec/rspec-core#2864 ("Remove deprecations"). Calls now raise NoMethodError under RSpec 4.0.0.beta1.
  • The canonical it_behaves_like has been the documented form since RSpec 2 and behaves identically on RSpec 3 and 4, so this swap is backwards-compatible — no Gemfile change required.
  • Converts the only remaining it_should_behave_like call in spec/plsql/procedure_spec.rb:62 (the VARCHAR/VARCHAR2 shared example invocation).

Test plan

  • bundle exec rspec still passes on RSpec 3.13.x: 461 examples, 0 failures, 1 pending.
  • Verified locally on RSpec 4.0.0.beta1 (with a separate Gemfile bump): 461 examples, 0 failures, 1 pending.

🤖 Generated with Claude Code

rspec-core removed the it_should_behave_like alias in commit
0f6a94ab ("Remove `it_should_behave_like`", merged via
rspec/rspec-core#2864 "Remove deprecations"), so calls to it now
raise NoMethodError under RSpec 4.0.0.beta1. The canonical
it_behaves_like has been the documented form since RSpec 2 and
behaves identically on RSpec 3 and 4, so this is a backwards-
compatible swap.

Convert the only remaining it_should_behave_like in
spec/plsql/procedure_spec.rb (line 62, the VARCHAR/VARCHAR2 shared
example invocation) to it_behaves_like.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@yahonda yahonda merged commit 142a8ab into rsim:master May 7, 2026
20 checks passed
@yahonda yahonda deleted the replace-it-should-behave-like branch May 7, 2026 10:24
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.

1 participant