Issue #6525 has been updated by Matthew Cashdollar.
I tested that and it worked on my Ruby 1.9.2, however I found another case statement with the same problem. Here is a small patch for that one: https://github.com/cashdollar/facter/tree/ticket/next/6525-case_statement_fix ---------------------------------------- Bug #6525: Test failure on Ruby 1.9.2 https://projects.puppetlabs.com/issues/6525 Author: James Turnbull Status: Ready For Testing Priority: Normal Assignee: Category: library Target version: Keywords: Branch: https://github.com/jamtur01/facter/tree/tickets/master/6525 <pre> rake spec (in /home/james/src/facter) /usr/local/rvm/rubies/ruby-1.9.2-p180/bin/ruby -S rspec spec/unit/uptime_spec.rb spec/unit/facter_spec.rb spec/unit/operatingsystemrelease_spec.rb spec/unit/virtual_spec.rb spec/unit/selinux_spec.rb spec/unit/interfaces_spec.rb spec/unit/operatingsystem_spec.rb spec/unit/util/uptime_spec.rb spec/unit/util/manufacturer_spec.rb spec/unit/util/ip_spec.rb spec/unit/util/macaddress_spec.rb spec/unit/util/virtual_spec.rb spec/unit/util/macosx_spec.rb spec/unit/util/vlans_spec.rb spec/unit/util/loader_spec.rb spec/unit/util/resolution_spec.rb spec/unit/util/fact_spec.rb spec/unit/util/xendomains_spec.rb spec/unit/util/collection_spec.rb spec/unit/util/confine_spec.rb spec/integration/facter_spec.rb /usr/local/rvm/gems/ruby-1.9.2-p180/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386:in `load': /home/james/src/facter/spec/unit/util/manufacturer_spec.rb:112: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n' (SyntaxError) when "FreeBSD": File.dirname(__FILE__) + "/.... ^ /home/james/src/facter/spec/unit/util/manufacturer_spec.rb:113: syntax error, unexpected keyword_when, expecting keyword_end when "SunOS" : File.dirname(__FI... ^ /home/james/src/facter/spec/unit/util/manufacturer_spec.rb:113: syntax error, unexpected ':', expecting keyword_end when "SunOS" : File.dirname(__FILE__) + "/.... ^ /home/james/src/facter/spec/unit/util/manufacturer_spec.rb:132: syntax error, unexpected keyword_end, expecting $end from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386:in `block in load_spec_files' from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386:in `map' from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386:in `load_spec_files' from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/rspec-core-2.5.1/lib/rspec/core/command_line.rb:18:in `run' from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:55:in `run_in_process' from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:46:in `run' from /usr/local/rvm/gems/ruby-1.9.2-p180/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:10:in `block in autorun' </pre> -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
