Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Unknown
-
Resolution: Unresolved
-
Affects Version/s: 0.6.12
-
Fix Version/s: None
-
Component/s: Integration Testing
-
Labels:None
-
Environment:
Debian GNU/Linux sid/unstable as of February 10th, 2012
Description
the ruby plugin tests get their test data from the currently running Ruby VM, but the plugin actually obtains the data by running `ruby`. This causes the tests to fail when the system Ruby and the currently running Ruby are different.
Please see https://github.com/opscode/ohai/pull/58#issuecomment-3898071
Your commit to 'bin/ohai' is a revert of
OHAI-140.See https://github.com/mdkent/ohai/commit/0062e57059d91630c83e79e28341fc088932e3d4
At the time, it was decided to include
OHAI-140so you could run 'bin/ohai' from the source tree. I'm unconvinced that was really a feature we desired, particularly since 'ruby -rubygems bin/ohai' works just as well and running from source isn't that common.As someone who has used other package management systems than Rubygems for maintaining Ruby libraries, I still believe we should not force the user to have Rubygems install on principle, even though most likely will except the extremes.
http://yehudakatz.com/2009/07/24/rubygems-good-practice/
http://tomayko.com/writings/require-rubygems-antipattern
Dan originally merged
OHAI-140, so I'll ask him if he recalls that discussion.