Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
define_derived_metadata
so that it supports cascades.
For example: ``` RSpec.configure do |c| c.define_derived_metadata(:elasticsearch) do |meta| meta[:vcr] = true end c.define_derived_metadata(:vcr) do |meta| meta[:retries] = 2 end end ``` With this configuration, an example or group tagged with `:elasticsearch` should get tagged with `:vcr` as well, which in turn should add `retries: 2` metadata to the example or group. Before this change, this did not work properly, because we did look to see if additional metadata blocks should apply after applying them once.
- Loading branch information
1 parent
d04d4de
commit 6b5fbcc
Showing
3 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
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
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
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