This repository has been archived by the owner on Nov 30, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 103
Fix expect_warn_deprecation matching any message #452
Merged
Merged
Conversation
This file contains 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
pirj
force-pushed
the
fix-deprecation-helpers
branch
2 times, most recently
from
December 15, 2020 14:55
62c9179
to
6687069
Compare
Seems like one legitimate failure has been found. |
I kicked the build over but its still failing, so it looks like it wasn't enough? |
Yep, |
pirj
added a commit
to rspec/rspec-expectations
that referenced
this pull request
Dec 17, 2020
-["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
force-pushed
the
fix-deprecation-helpers
branch
from
December 17, 2020 20:03
6687069
to
64fd0a8
Compare
Build kicked over again |
pirj
force-pushed
the
fix-deprecation-helpers
branch
from
December 17, 2020 20:32
e79db05
to
23a4946
Compare
expect_warn_deprecation matches any message when there's raise_error(RSpec::Expectations::ExpectationNotMetError) in the example, e.g.: it 'prints a deprecation warning when given a value and negated' do expect_warn_deprecation(/complete nonsense/) expect { expect(3).not_to matcher }.to fail end
pirj
force-pushed
the
fix-deprecation-helpers
branch
from
December 17, 2020 20:38
6e55185
to
7ae427d
Compare
Green. |
Not so sure about 1.8.7 and co though. |
The travis builds have gotten even more broken 😂 I'm going to have to look at that this weekend |
pirj
added a commit
to rspec/rspec-expectations
that referenced
this pull request
Dec 18, 2020
-["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
1 task
JonRowe
added a commit
that referenced
this pull request
Dec 27, 2020
Fix expect_warn_deprecation matching any message
yujinakayama
pushed a commit
to yujinakayama/rspec-monorepo
that referenced
this pull request
Oct 6, 2021
-["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 --- This commit was imported from rspec/rspec-expectations@f1a1e7a.
yujinakayama
pushed a commit
to yujinakayama/rspec-monorepo
that referenced
this pull request
Oct 6, 2021
…eprecation-helpers Fix expect_warn_deprecation matching any message --- This commit was imported from rspec/rspec-support@b3a075a.
yujinakayama
pushed a commit
to yujinakayama/rspec-monorepo
that referenced
this pull request
Oct 6, 2021
…eprecation-helpers Fix expect_warn_deprecation matching any message --- This commit was imported from rspec/rspec-support@d69dd88.
yujinakayama
pushed a commit
to yujinakayama/rspec-monorepo
that referenced
this pull request
Oct 19, 2021
-["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 --- This commit was imported from rspec/rspec-expectations@216db53.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
expect_warn_deprecation matches any message when there's
raise_error(RSpec::Expectations::ExpectationNotMetError) in the example,
e.g.:
fixes: #451
I'm sending against
main
, but it needs to be merged to4-0-dev
as well.