Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use include instead of match in the error message #1248

Merged
merged 1 commit into from
Oct 25, 2016

Conversation

artem-sidorenko
Copy link
Contributor

as include behaves like contain (exact matching instead of regexp)

Related comment

Are they any reasons why contain is not mapped to include with a warning?
It might simplify the migration from serverspec, where deprecated contain matcher is used quite often

as include behaves like contain and not match

Signed-off-by: Artem Sidorenko <artem@posteo.de>
@chris-rock
Copy link
Contributor

@artem-sidorenko I think it makes sense to map it to include but still keep the deprecation warning.

@artem-sidorenko
Copy link
Contributor Author

@chris-rock Ok. I will have a look to rspec and how to do that, I'm not familiar with rspec on this level yet.

Maybe it makes sense to merge this and I will provide another PR with mapping to include

@chris-rock
Copy link
Contributor

@artem-sidorenko Yes it does make sense. Thanks @artem-sidorenko

@chris-rock chris-rock merged commit 489f314 into inspec:master Oct 25, 2016
@artem-sidorenko artem-sidorenko deleted the include-matcher branch October 25, 2016 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants