On 10/23/06, Peter Royle <[EMAIL PROTECTED]> wrote:
> OK I'll go with 1.8.2 then. I've got both 18.2 and 1.8.4 installed so
> it's not a drama.
>
> The only thing is that smoke_alarm.rb reports the version it's being run
> against (has to be 1.8.4), not necessarily the one being used to run the
> tests. I might have a crack at fixing this up a bit later and maybe send
> you a patch. I've done one trial run ("Test run on 2006-10-23 10:03:18")
> which uses...
>
> IO.popen('ruby -v') do |io|
>   @version_info = io.read
> end
>
> ...to get the version being used to run the tests, so it'll just a
> matter of parsing it to extract the different pieces of info.

I like this solution. I'm not really concerned about parsing it to
extract the different fields. It is just to give me an indication of
the system the test is running on so leaving it in a single field
should be fine.

Cheers,
Dave
_______________________________________________
Ferret-talk mailing list
Ferret-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to