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

[Q] How to make rspec recognize a pattern? #411

Open
CharlieIGG opened this issue Feb 14, 2019 · 0 comments
Open

[Q] How to make rspec recognize a pattern? #411

CharlieIGG opened this issue Feb 14, 2019 · 0 comments

Comments

@CharlieIGG
Copy link

CharlieIGG commented Feb 14, 2019

Hello! I'm trying to accomplish something like this for some tests:

watch(%r{^app/models/(.+).rb}) { |m| "-P 'spec/features/*#{m[1]}*/*'" }

If I call straight from my console:

rspec -P 'spec/features/*#{m[1]}*/*' it works as expected, but I cannot seem to be able to make this work using guard-rspec.

I also tried it like so:
watch(%r{^app/models/(.+).rb}) { |m| "-P #{rspec.spec.call("/features/*#{m[1]}*/*"} }

All to no avail.

@CharlieIGG CharlieIGG changed the title [Q] How to override the default pattern? [Q] How to make rspec recognize a pattern? Feb 15, 2019
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

1 participant