Every once in a while, I fire up iTerm 2, which is using zsh, to work on tutorials. Sometimes, when I try to run my Ruby tests, they don’t run. Nothing gets returned. The process never runs and I have to ctrl+C to break out of it.
Here’s the command I run:
ruby -I test/unit/name_of_test.rb
This happens with all of my tests. Sometimes I just have to restart my computer. Any ideas?
I’ve also tried using Terminal, which is also using zsh.
I’m on OS X, using Ruby 1.9.3 and Rails 3.2.8.
Doh! As I was writing this, I spotted my problem and figured I’d go ahead and provide the answer in case anyone else ever does this. I needed to adjust my command to include the word test before specifying the directory, like so: