Bug #3542

Ruby 1.9: broken unittest, String#each no longer exists

Added by Jos Backus almost 2 years ago. Updated almost 2 years ago.

Status:Closed Start date:04/13/2010
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:testing
Target version:1.5.8
Keywords: Affected Facter version:
Branch:
Votes: 0

Description

When running the Facter unit tests under Ruby 1.9, the following failure is seen:

1)
NoMethodError in 'Facter when warning should warn if debugging is enabled'
undefined method `each' for "foo":String
/home/josb/src/facter/spec/unit/facter.rb:147:in `block (3 levels) in <top (required)>'

bug-3542.diff - Proposed patch (371 Bytes) Jos Backus, 04/13/2010 12:48 am

bug-3542.diff - Alternative, shorter patch (355 Bytes) Jos Backus, 04/13/2010 05:49 pm

History

Updated by Jos Backus almost 2 years ago

Updated by James Turnbull almost 2 years ago

  • Category set to testing
  • Status changed from Unreviewed to In Topic Branch Pending Review

Updated by Jos Backus almost 2 years ago

Updated by James Turnbull almost 2 years ago

  • Status changed from In Topic Branch Pending Review to Closed

Pushed in commit:802e6c24a0968deb0b45402d73c850f045b70c46 in branch master.

Also available in: Atom PDF