Skip to content
New issue

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

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

Already on GitHub? # to your account

Make be_an_existing_X matchers more useful #740

Open
mvz opened this issue Nov 8, 2020 · 0 comments
Open

Make be_an_existing_X matchers more useful #740

mvz opened this issue Nov 8, 2020 · 0 comments

Comments

@mvz
Copy link
Contributor

mvz commented Nov 8, 2020

Summary

It should be possible to use matchers like be_an_existing_file everywhere in a project's spec suite, even outside an Aruba spec.

Expected Behavior

Just calling require "aruba/rspec" or similar should allow one to use be_an_existing_file in any spec.

Current Behavior

Calling this helper fails because it can't find stop_all_commands.

Possible Solution

  • Don't stop commands
  • Call file? helper in a way that doesn't require it to be a local method.

Context & Motivation

I'm porting a project from minitest to rspec + aruba, and wanted to use be_an_exsting_file to replace minitest's path_must_exist matcher.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant