Hi,
I have a question about the ruby code.
At the top of the ruby code, I have found people put require “gem name”.
However, I have specified where the specific gem directory. It always
returns me these errors.
[azureuser@aquafina tests]$ ruby test_json.rb
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:53:in require': cannot load such file -- minitest/unit (LoadError) from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:53:in
require’
from /usr/share/ruby/test/unit.rb:3:in <top (required)>' from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:53:in
require’
from
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:53:in require' from test_json.rb:4:in
’
I would like to run default test cases that gem developers provided.
I think this errors are something to do with the file directory of the
gems.
What do I need to do when the gem test needs external gem to run the
ruby code?? Where do I need to put the test case or how should I specify
the file path?? It always return me the similar error that I have put.
I would appreciate of it!!