alexch / learn_ruby

a basic ruby class generated from test-first-teaching
http://testfirst.org
261 stars 2.83k forks source link

Issues with "require" in ruby 1.9.3 #7

Closed StevenJL closed 11 years ago

StevenJL commented 11 years ago

I have Ruby 1.9.3 installed. When I tried doing the exercises, I kept getting this error:

/Users/stevenjli/Documents/App Academy/learn_ruby-master/00_hello/hello_spec.rb:116:in `require': cannot load such file

I asked around StackExchange, where the posters suggested that "require" might be the issue. Namely, because I'm using Ruby 1.9.3, the "require" needs to be changed to "require_relative." They were right. I went through every spec.rb file and changed "require" to "require_relative" and this got things working.