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

Conversation

@maxlinc
Copy link
Contributor

@maxlinc maxlinc commented Jun 25, 2014

Documents the limitation described in #1614. Please leave that issue open as a feature request.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Saying they are merged suggests that this is an active, intentional thing we've written code to do. It's not...it's just that filters are represented internally as a hash and hashes don't allow multiple entries for the same key. I think I'd write this as:

Filters are represented internally as a hash, which means that you can't
specify multiple filters for the same key. If you try to exclude `:name => 'foo'`
and `:name => 'bar'`, you will only end up excluding `:name => 'bar'`.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or without mentioning the implementation details:

Filters that use the same `name` in a `name:value` pair will be overwritten,
so if you try to exclude `:name => 'foo'` and `:name => 'bar'`, you will only
end up excluding `:name => 'bar'`.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's good for people to have the mental model of metadata (and by extension tags) as being represented by a hash...

@myronmarston
Copy link
Member

Also, can you squash this into one commit?

@maxlinc
Copy link
Contributor Author

maxlinc commented Jun 26, 2014

Updated w/ @myronmarston's proposed wording and squashed.

JonRowe added a commit that referenced this pull request Jun 27, 2014
Document tag name:value pair limitation.
@JonRowe JonRowe merged commit 2bd27ee into rspec:master Jun 27, 2014
@JonRowe
Copy link
Member

JonRowe commented Jun 27, 2014

Thank @maxlinc

@maxlinc maxlinc deleted the patch-1 branch June 30, 2014 19:26
MatheusRich pushed a commit to MatheusRich/rspec-core that referenced this pull request Oct 30, 2020
Document tag name:value pair limitation.
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.

3 participants