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

Combine multiple --pattern arguments #2002

Merged
merged 2 commits into from
Jun 18, 2015
Merged

Conversation

JonRowe
Copy link
Member

@JonRowe JonRowe commented Jun 17, 2015

Fixes #2000

JonRowe added a commit that referenced this pull request Jun 17, 2015
@@ -214,6 +214,10 @@ def generate_help_text
options = Parser.parse([option, 'spec/**/*.spec'])
expect(options[:pattern]).to eq('spec/**/*.spec')
end
it 'will combine multple patterns' do
Copy link
Member

Choose a reason for hiding this comment

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

A blank line between examples would be nice for consistent formatting :).

Also, the will seems superfluous...why not it 'combines multiple patterns'?

@myronmarston
Copy link
Member

Have you tried this from the CLI to confirm it works correctly?

My knowledge of glob patterns is a little week so it LGTM to be but I'd have to test it manually to confirm it works properly.

@JonRowe JonRowe force-pushed the combine_multiple_patterns branch from 20f52ae to 5cf8e4f Compare June 17, 2015 23:39
@JonRowe JonRowe force-pushed the combine_multiple_patterns branch from 5cf8e4f to 42f8ee9 Compare June 17, 2015 23:39
@JonRowe
Copy link
Member Author

JonRowe commented Jun 17, 2015

Yep I checked :)

@myronmarston
Copy link
Member

LGTM then :).

@JonRowe
Copy link
Member Author

JonRowe commented Jun 18, 2015

I had to disable cyclomatic complexity for the option parser, I don't think it's worth refactoring as isn't that complex, it's just the option parser DSL

JonRowe added a commit that referenced this pull request Jun 18, 2015
Combine multiple `--pattern` arguments
@JonRowe JonRowe merged commit ae05642 into master Jun 18, 2015
@JonRowe JonRowe deleted the combine_multiple_patterns branch June 18, 2015 03:00
MatheusRich pushed a commit to MatheusRich/rspec-core that referenced this pull request Oct 30, 2020
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.

2 participants