Replace it_should_behave_like with it_behaves_like#288
Merged
yahonda merged 1 commit intorsim:masterfrom May 7, 2026
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
rspec-coreremoved theit_should_behave_likealias in commit0f6a94ab("Removeit_should_behave_like"), merged via rspec/rspec-core#2864 ("Remove deprecations"). Calls now raiseNoMethodErrorunder RSpec 4.0.0.beta1.it_behaves_likehas 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.it_should_behave_likecall inspec/plsql/procedure_spec.rb:62(the VARCHAR/VARCHAR2 shared example invocation).Test plan
bundle exec rspecstill passes on RSpec 3.13.x: 461 examples, 0 failures, 1 pending.🤖 Generated with Claude Code