turingschool-examples / ruby-exercises

A collection of exercises to practice various aspects of Ruby
MIT License
237 stars 767 forks source link

Iniitialize error #81

Closed AlexanderOsborne closed 4 years ago

AlexanderOsborne commented 4 years ago

When attempting the initialize exercises I was presented with the following error.

/Users/alexosborne/.rbenv/versions/2.5.3/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require' /Users/alexosborne/.rbenv/versions/2.5.3/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- ./lib/aardvark (LoadError)

The work around is to cd up a level so that both the library and test directories are below. You can then run the test with the following.

ruby test/filename.rb

s-espinosa commented 4 years ago

Thanks, Alex! Think that’s exactly right. This is the intended behavior, so I wouldn’t consider it an issue, per se. I’m going to go ahead and close this. Please let us know if you think there’s something in the repo that you believe needs to be adjusted.