Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ill-defined warn expectation #1243

Merged
merged 1 commit into from
Dec 17, 2020
Merged

Fix ill-defined warn expectation #1243

merged 1 commit into from
Dec 17, 2020

Conversation

pirj
Copy link
Member

@pirj pirj commented Dec 17, 2020

https://github.com/rspec/rspec-support/pull/452/checks?check_run_id=1566708254

-["include {:message => (match /legacy\\s+RSpec\\s+matcher/), :call_site => (include \"/home/runner/work/rspec-support/rspec-expectations/spec/rspec/matchers/legacy_spec.rb:31\")}"]
       +[{:message=>
       +   "#<#<Class:0x000055fcd6e44840>:0x000055fcd6e52bc0> implements a legacy RSpec matcher\nprotocol. For the current protocol you should expose the failure messages\nvia the `failure_message` and `failure_message_when_negated` methods.\n(Used from /home/runner/work/rspec-support/rspec-expectations/spec/rspec/matchers/legacy_spec.rb:31:in `block (4 levels) in <module:Matchers>')\n",
       +  :type=>"legacy_matcher"}]

See rspec/rspec-support#452

        -["include {:message => (match /legacy\\s+RSpec\\s+matcher/), :call_site => (include \"/home/runner/work/rspec-support/rspec-expectations/spec/rspec/matchers/legacy_spec.rb:31\")}"]
       +[{:message=>
       +   "#<#<Class:0x000055fcd6e44840>:0x000055fcd6e52bc0> implements a legacy RSpec matcher\nprotocol. For the current protocol you should expose the failure messages\nvia the `failure_message` and `failure_message_when_negated` methods.\n(Used from /home/runner/work/rspec-support/rspec-expectations/spec/rspec/matchers/legacy_spec.rb:31:in `block (4 levels) in <module:Matchers>')\n",
       +  :type=>"legacy_matcher"}]

See rspec/rspec-support#452
@pirj pirj self-assigned this Dec 17, 2020
@pirj
Copy link
Member Author

pirj commented Dec 17, 2020

@JonRowe Green.

Do you want me to send PRs against 4-0-dev for this, rspec/rspec-core#2798, and rspec/rspec-support#452 ? Or ok to cherry-pick and push there? We're getting 4-0-dev built on CI anyway.

@JonRowe JonRowe merged commit acf85c1 into main Dec 17, 2020
@JonRowe JonRowe deleted the fix-deprecation-expectation branch December 17, 2020 20:19
@JonRowe
Copy link
Member

JonRowe commented Dec 18, 2020

PRs please

JonRowe added a commit that referenced this pull request Dec 27, 2020
yujinakayama pushed a commit to yujinakayama/rspec-monorepo that referenced this pull request Oct 6, 2021
…rspec/fix-deprecation-expectation

Fix ill-defined warn expectation

---
This commit was imported from rspec/rspec-expectations@acf85c1.
yujinakayama pushed a commit to yujinakayama/rspec-monorepo that referenced this pull request Oct 6, 2021
…rspec/fix-deprecation-expectation

Fix ill-defined warn expectation

---
This commit was imported from rspec/rspec-expectations@713e878.
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.

None yet

2 participants