Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Updates from rspec-dev (2021-07-13) #1308

Conversation

JonRowe
Copy link
Member

@JonRowe JonRowe commented Jul 13, 2021

These are some updates, generated from rspec-dev's rake tasks.

JonRowe and others added 30 commits October 30, 2020 14:42
…6-for-main

Updates from rspec-dev (2020-11-16)
…6-for-main

Updates from rspec-dev (2020-11-16)
…8-for-main

Updates from rspec-dev (2020-11-18)
Coverage has changed on GHA

fixup cov
…2-for-main

Updates from rspec-dev (2020-11-22)
…8-for-main

Updates from rspec-dev (2020-12-08)
…9-for-main

Updates from rspec-dev (2020-12-09)
        -["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-for-main

Updates from rspec-dev (2020-12-21)
…2-for-main-

Updates from rspec-dev (2020-12-22)
…0-12-25-for-main

Updates from rspec-dev (2020-12-25)
JonRowe and others added 24 commits January 2, 2021 12:01
…2-for-main

Updates from rspec-dev (2021-01-02)
…2-for-main

Updates from rspec-dev (2021-01-02)
…2-for-main

Updates from rspec-dev (2021-01-02)
…2-for-main

Updates from rspec-dev (2021-01-22)
…2-for-main

Updates from rspec-dev (2021-01-22)
https://blog.rubystyle.guide/rspec/2019/07/17/rspec-implicit-block-syntax.html
https://rspec.rubystyle.guide/#implicit-block-expectations

Spec changes are due to:

    matcher.matches?(invalid_value)

doesn't work with block-only matchers, as no block is passed in, and it
fails with a message:

    1) RSpec::Matchers::BuiltIn::Change behaves like an RSpec block-only matcher uses the `ObjectFormatter` for `failure_message`
       Failure/Error: expect(message).to include("detailed inspect")
         expected "expected `@k` to have changed, but was not given a block" to include "detailed inspect"

The redundant (due to existing check in ExpectationTarget) `Proc ===
@event_proc` checks could not be removed safely as well, since
@actual_after is not initialized yet when we haven't executed the block:

     RuntimeError:
       Warnings were generated: rspec-dev/repos/rspec-expectations/lib/rspec/matchers/built_in/change.rb:407: warning: instance variable @actual_after not initialized

Ruby 1.8-specific workarounds:

    multiple values for a block parameter (0 for 1)

If a block expects an argument, it ought to be provided an argument in 1.8
…with-value-expectation-target

Print deprecation message when implicit block expectation syntax is used
See rspec/rspec-collection_matchers#48

If a matcher supports dynamic arbitrary methods called on it, e.g.
`have_at_least(100).bucks`, it would also consider a
`supports_value_expectations?` call as a dynamic part.

Instead of calling `supports_*?` methods on a matcher, explicitly
check if it responds to it.
…3-for-main

Updates from rspec-dev (2021-04-23)
…3-for-main

Updates from rspec-dev (2021-07-13)
@JonRowe JonRowe force-pushed the update-ci-build-scripts-2021-07-13-for-3-10-maintenance branch from cd4702c to 2cc6c3a Compare July 15, 2021 11:16
@JonRowe JonRowe closed this Jul 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants