Skip to content
← Back to Community
Using rspec in repl console
Profile icon
alterisian

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
Profile icon
alterisian
Comments
hotnewtop
Profile icon
SixBeeps

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.

Profile icon
alterisian

@niorg2606 cheers for the reply. trying to guess how it is configured, but can add aditional configuration later on.

ħopefully I can find another REPL'r more familiar with ruby & rspec.