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

Creating compound matchers #336

Closed
itissid opened this issue Dec 4, 2015 · 4 comments
Closed

Creating compound matchers #336

itissid opened this issue Dec 4, 2015 · 4 comments

Comments

@itissid
Copy link

itissid commented Dec 4, 2015

I am on 2.12 version of rspec, Can we use abstractions like or/and like: https://www.relishapp.com/rspec/rspec-expectations/v/3-4/docs/compound-expectations with rspec puppet?

@DavidS
Copy link
Collaborator

DavidS commented Dec 7, 2015

The rspec documentation of 2.12 does not seem to describe compound expectations. This is not an rspec-puppet problem then.

What reason do you have for staying at such an ancient version?

@DavidS DavidS closed this as completed Dec 7, 2015
@jantman
Copy link
Contributor

jantman commented Jan 23, 2017

rspec 3.1.0's documentation does describe compound matchers, but they still seem to not work with rspec-puppet... though maybe I'm missing something about how to properly use them. Would it be possible to get this reopened and either verified as valid, or an example of how they should work?

@DavidS
Copy link
Collaborator

DavidS commented Jan 23, 2017

@jantman there is already #365 describing a similar issue. Does that match what you're looking for?

@jantman
Copy link
Contributor

jantman commented Jan 23, 2017

@DavidS I suppose so? I honestly don't know enough about the internals of rspec to say with certainty. All I know is that I want to be able to do something like:

contain_file('foo).with_only('bar' => 'baz').or contain_file('foo').with_only('bar' => 'blam')

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

No branches or pull requests

3 participants