Using rspec in repl console
Hi, the repl console seems to be irb, which I don't normally use to run tests from.
However, rspec seems to invoke. But I don't know which directory or filename pattern it is looking for.
So it comes back with:
"ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux]
rspec
No examples found.
Finished in 0.00059 seconds (files took 0.24744 seconds to load)
0 examples, 0 failures"
Question: Which directory is it looking for rspec in?
I've tried the root, and also a /spec and /rspec directory...
Thank you,
Ian.
Voters
I haven't used Ruby in ages, and I have never used RSpec in my life, but I believe the documentation may have an answer. There is a configuration objects that you may be able to edit. You'll likely want to check out the
#default_path
property.ħopefully I can find another REPL'r more familiar with ruby & rspec.