Hi All,
When I include “gem ‘test-unit’” in my ruby file, it gives the following
error. However my “gem list” does show test-unit. I am not sure what is
missing when running the file as “ruby ci_reporter.rb”. The actual ruby
file is attached.
C:\Ruby_Scripts>ruby ci_report.rb
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in
to_specs': Could not find test-unit (>= 0) amongst [b igdecimal-1.1.0, childprocess-0.3.1, ffi-1.0.11, io-console-0.3, json-1.5.4, minitest-2.5.1, multi_json-1.1.0, rake-0.9. 2.2, rdoc-3.9.4, rubyzip-0.9.6.1, selenium-webdriver-2.20.0, watir-webdriver-0.5.3] (Gem::LoadError) from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in
to_spec’
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems.rb:1208:in
gem' from ci_report.rb:1:in
’
C:\Ruby_Scripts>gem list
*** LOCAL GEMS ***
builder (3.0.0)
childprocess (0.3.1)
ci_reporter (1.7.0)
ffi (1.0.11 java)
jruby-win32ole (0.8.5)
json (1.6.5 java)
multi_json (1.1.0)
rake (0.8.7)
rubygems-update (1.8.17)
rubyzip (0.9.6.1)
selenium-webdriver (2.20.0)
sources (0.0.1)
test-unit (2.4.8)
watir-webdriver (0.5.3)