I want to run a test for the gem mini_magick:
I got the directory lib, inside of which i got:
- mini_magick.rb
- mini_gmagick.rb
and inside of the test folder is the test i need to run:
- image_test.rb
and a helper file called: - test_helper.rb
When i run
ruby test/image_test.rb
i get this error:
$ ruby test/image_test.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- test_helper (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from test/image_test.rb:1:in `<main>'
I was adviced to use -l to include libraries (similar to):
ruby -l lib -l test/test_helper.rb test/image_test.rb
but without success. So i looked at "man ruby", found -r, but that didn't help neither.
How can i run the tests manually ?
Thanks in advance.