Bug #3312

Unit tests error: test_correct_type_assumptions, test_paramblocks: undefined method `element'

Added by Mathias Gug almost 2 years ago. Updated almost 2 years ago.

Status:Accepted Start date:02/27/2010
Priority:Low Due date:
Assignee:- % Done:

0%

Category:testing
Target version:-
Affected Puppet version:0.25.4 Branch:
Keywords:
Votes: 0

Description

While running the puppet testsuite on Ubuntu Lucid the following errors were thrown:

27) Error:

test_correct_type_assumptions(TestSettings):
NoMethodError: undefined method `element' for #<Puppet::Util::Settings:0x7f8c754bd9e0>
./util/settings.rb:486:in `test_correct_type_assumptions'
./util/settings.rb:471:in `each'
./util/settings.rb:471:in `test_correct_type_assumptions'
/usr/lib/ruby/1.8/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/usr/lib/ruby/1.8/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'

30) Error:

test_paramblocks(TestSettings):
NoMethodError: undefined method `element' for #<Puppet::Util::Settings:0x7f8c753d3e80>
./util/settings.rb:532:in `test_paramblocks'
/usr/lib/ruby/1.8/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/usr/lib/ruby/1.8/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'

Related issues

related to Puppet - Refactor #2969: Convert Test::Unit tests to RSpec Accepted 12/20/2009
related to Puppet - Bug #3077: Some of the unit tests in the test (not spec) directory w... Closed 01/16/2010

History

Updated by Markus Roberts almost 2 years ago

  • Category set to testing
  • Status changed from Unreviewed to Accepted
  • Priority changed from Normal to Low

Note that these are errors in the older unit tests not the current spec/unit tests. The correct resolution is to bring the tests up to date (#2969).

Also available in: Atom PDF