Issue with Rspec after switching from RVM to Rbenv

phew, seems that I found the issue. Seems I had a ~/.zshrc file I wasn’t aware of, because I’m using Bash. Inside that .zshrc file there stil was a PATH reference ro rvm (although I removed rvm from my system). I removed that reference and added:

export PATH=".git/safe/../../bin:$PATH"

to it. Then I sourced the file, and now when I run ‘which rspec’, I get:

.git/safe/…/…/bin/rspec

When I run ‘rspec’, my tests are running : )

Funny thing is that I wasn’t aware that I had a .zshrc file. When I look in my terminal, in the tab I see the text ‘bash’, so I guess I’m using Bash?

I hear lot’s of developers use Zsh instead of Bash, not sure why. Don’t want to start a flamewar :smile:

greetings and thanks everyone for your help and patience,

Anthony

You should move that line from ~/.zshrc into your ~/.bashrc file so that it’s completely contained within bash configuration rather than zsh configuration.

Hi Geoff,

I just copied

export PATH=".git/safe/../../bin:$PATH"

from ~/.bashrc and copied it to ~/.zhsrc

Everything is working fine now.

Don’t know how this ~/.zhsrc file got there in the first place, but I dare not remove it, as I might break something.

greetings,

Anthony