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

Chapter 9, filter_run_when_matching would be better #122

Open
JunichiIto opened this issue May 10, 2022 · 0 comments
Open

Chapter 9, filter_run_when_matching would be better #122

JunichiIto opened this issue May 10, 2022 · 0 comments

Comments

@JunichiIto
Copy link
Contributor

In page 158, chapter 9, you write the code below:

RSpec.configure.do |config|
  config.filter_run focus: true
  config.run_all_when_everything_filtered = true 
end

Since RSpec 3.5, you can write like this:

RSpec.configure.do |config|
  config.filter_run_when_matching :focus
end

See also: https://github.com/rspec/rspec-core/blob/main/Changelog.md#350beta3--2016-04-02

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant