Change 14574

tony
tony committed this change into //guest/perforce_software/p4ruby/main
Request Review
Download .zip
Fix P4Ruby's test suite so it works for Ruby 1.9 and Ruby 1.8.
The
interface for Ruby's Unit::Test module has changed slightly between
the two versions. In Ruby 1.8, the verbosity was passed as an integer,
while in Ruby 1.9 it's one of several options passed as a hash.

This change checks the version number of Ruby and adapts the call if
it's 1.9 or later.
  • Files 1
  • Comments 0
1 edited 0 added 0 deleted
test.rb#9
Loading...
Tip: Use n and p to cycle through the changes.