mapnik/Ruby-Mapnik — Issue #8: 22 failing tests on ubuntu 11.04 with ruby 1.9.2
Author: springmeyer
Created: 2011-10-09 04:50:40+00:00
State: open

Several of these are due to geometry api change upstream in mapnik, but others likely should not be happening:

```

$ rake-ruby-1.9.2-p290 test
#= 0) amongst [ZenTest-4.6.2, hoe-2.12.3, rake-0.9.2, rake-compiler-0.7.9, rice-1.4.2]>
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)
/home/mapnik/.rvm/rubies/ruby-1.9.2-p290/bin/ruby -w -Ilib:bin:test:. -e 'require "rubygems"; require "test/unit"; require "test/test_helper.rb"; require "test/test_mapnik_line_symbolizer.rb"; require "test/test_mapnik_expression.rb"; require "test/test_ruby_mapnik.rb"; require "test/test_mapnik_feature.rb"; require "test/test_mapnik_glyph_symbolizer.rb"; require "test/test_mapnik_style.rb"; require "test/test_mapnik_map.rb"; require "test/test_mapnik_raster_symbolizer.rb"; require "test/test_mapnik_coord.rb"; require "test/test_mapnik_datasource.rb"; require "test/test_mapnik_color.rb"; require "test/test_mapnik_envelope.rb"; require "test/test_mapnik_rule.rb"; require "test/test_line_pattern_symbolizer.rb"; require "test/test_mapnik_font_engine.rb"; require "test/test_mapnik_projection.rb"; require "test/test_mapnik_symbolizer.rb"; require "test/test_mapnik_text_symbolizer.rb"; require "test/test_mapnik_polygon_symbolizer.rb"; require "test/test_polygon_pattern_symbolizer.rb"; require "test/test_mapnik_raster_colorizer.rb"; require "test/test_mapnik_geometry.rb"; require "test/test_mapnik_point_symbolizer.rb"; require "test/test_mapnik_shield_symbolizer.rb"; require "test/test_mapnik_markers_symbolizer.rb"; require "test/test_mapnik_layer.rb"; require "test/test_mapnik_stroke.rb"' --
Loaded suite -e
Started
...........................................E......EEEEEE......................E..................E.E.EEEE.E.................EE.EE..............E......................................E......E...........................................
Finished in 0.238084 seconds.

1) Error:
test_should_add_a_geometry(TestMapnikFeature):
NoMethodError: undefined method `add_geometry' for feature (
id:1
)
:Mapnik::Feature
/home/mapnik/src/Ruby-Mapnik/test/test_mapnik_feature.rb:29:in `test_should_add_a_geometry'

2) Error:
test_should_make_linestring_from_wkt(TestMapnikGeometry):
NoMethodError: undefined method `from_wkt' for Mapnik::Geometry2d:Class
/home/mapnik/src/Ruby-Mapnik/test/test_mapnik_geometry.rb:26:in `test_should_make_linestring_from_wkt'

3) Error:
test_should_make_multilinestring_from_wkt(TestMapnikGeometry):
NoMethodError: undefined method `from_wkt' for Mapnik::Geometry2d:Class
/home/mapnik/src/Ruby-Mapnik/test/test_mapnik_geometry.rb:55:in `test_should_make_multilinestring_from_wkt'

4) Error:
test_should_make_multipoint_from_wkt(TestMapnikGeometry):
NoMethodError: undefined method `from_wkt' for Mapnik::Geometry2d:Class
/home/mapnik/src/Ruby-Mapnik/test/test_mapnik_geometry.rb:46:in `test_should_make_multipoint_from_wkt'

5) Error:
test_should_make_multipolygon_from_wkt(TestMapnikGeometry):
NoMethodError: undefined method `from_wkt' for Mapnik::Geometry2d:Class
/home/mapnik/src/Ruby-Mapnik/test/test_mapnik_geometry.rb:64:in `test_should_make_multipolygon_from_wkt'

6) Error:
test_should_make_point_from_wkt(TestMapnikGeometry):
NoMethodError: undefined method `from_wkt' for Mapnik::Geometry2d:Class
/home/mapnik/src/Ruby-Mapnik/test/test_mapnik_geometry.rb:16:in `test_should_make_point_from_wkt'

7) Error:
test_should_make_polygon_from_wkt(TestMapnikGeometry):
NoMethodError: undefined method `from_wkt' for Mapnik::Geometry2d:Class
/home/mapnik/src/Ruby-Mapnik/test/test_mapnik_geometry.rb:36:in `test_should_make_polygon_from_wkt'

8) Error:
test_should_have_styles(TestMapnikLayer):
NameError: undefined local variable or method `__style_list__' for #
/home/mapnik/src/Ruby-Mapnik/lib/ruby_mapnik/mapnik/layer.rb:60:in `styles'
/home/mapnik/src/Ruby-Mapnik/test/test_mapnik_layer.rb:118:in `test_should_have_styles'

9) Error:
test_should_have_layers(TestMapnikMap):
NameError: undefined local variable or method `__layers__' for #
/home/mapnik/src/Ruby-Mapnik/lib/ruby_mapnik/mapnik/map.rb:145:in `layers'
/home/mapnik/src/Ruby-Mapnik/test/test_mapnik_map.rb:131:in `test_should_have_layers'

10) Error:
test_should_have_styles(TestMapnikMap):
NameError: undefined local variable or method `__styles__' for #
/home/mapnik/src/Ruby-Mapnik/lib/ruby_mapnik/mapnik/map.rb:126:in `styles'
/home/mapnik/src/Ruby-Mapnik/test/test_mapnik_map.rb:18:in `test_should_have_styles'

11) Error:
test_should_load_from_file(TestMapnikMap):
NameError: undefined local variable or method `__layers__' for #
/home/mapnik/src/Ruby-Mapnik/lib/ruby_mapnik/mapnik/map.rb:145:in `layers'
/home/mapnik/src/Ruby-Mapnik/test/test_mapnik_map.rb:172:in `test_should_load_from_file'

12) Error:
test_should_load_from_file_path_string(TestMapnikMap):
NameError: undefined local variable or method `__layers__' for #
/home/mapnik/src/Ruby-Mapnik/lib/ruby_mapnik/mapnik/map.rb:145:in `layers'
/home/mapnik/src/Ruby-Mapnik/test/test_mapnik_map.rb:165:in `test_should_load_from_file_path_string'

13) Error:
test_should_load_from_xml_string(TestMapnikMap):
NameError: undefined local variable or method `__symbols__' for #
/home/mapnik/src/Ruby-Mapnik/lib/ruby_mapnik/mapnik/rule.rb:98:in `symbols'
/home/mapnik/src/Ruby-Mapnik/test/test_mapnik_map.rb:189:in `build_complete_map'
/home/mapnik/src/Ruby-Mapnik/test/test_mapnik_map.rb:156:in `test_should_load_from_xml_string'

14) Error:
test_should_output_to_xml(TestMapnikMap):
NameError: undefined local variable or method `__symbols__' for #
/home/mapnik/src/Ruby-Mapnik/lib/ruby_mapnik/mapnik/rule.rb:98:in `symbols'
/home/mapnik/src/Ruby-Mapnik/test/test_mapnik_map.rb:189:in `build_complete_map'
/home/mapnik/src/Ruby-Mapnik/test/test_mapnik_map.rb:141:in `test_should_output_to_xml'

15) Error:
test_should_render_to_file(TestMapnikMap):
NameError: undefined local variable or method `__symbols__' for #
/home/mapnik/src/Ruby-Mapnik/lib/ruby_mapnik/mapnik/rule.rb:98:in `symbols'
/home/mapnik/src/Ruby-Mapnik/test/test_mapnik_map.rb:189:in `build_complete_map'
/home/mapnik/src/Ruby-Mapnik/test/test_mapnik_map.rb:147:in `test_should_render_to_file'

16) Error:
test_should_forward_envelopes(TestMapnikProjection):
NoMethodError: undefined method `__forward_env__' for #
/home/mapnik/src/Ruby-Mapnik/lib/ruby_mapnik/mapnik/projection.rb:28:in `forward'
/home/mapnik/src/Ruby-Mapnik/test/test_mapnik_projection.rb:43:in `test_should_forward_envelopes'

17) Error:
test_should_forward_points(TestMapnikProjection):
NoMethodError: undefined method `__forward_pt__' for #
/home/mapnik/src/Ruby-Mapnik/lib/ruby_mapnik/mapnik/projection.rb:30:in `forward'
/home/mapnik/src/Ruby-Mapnik/test/test_mapnik_projection.rb:38:in `test_should_forward_points'

18) Error:
test_should_inverse_envelopes(TestMapnikProjection):
NoMethodError: undefined method `__inverse_env__' for #
/home/mapnik/src/Ruby-Mapnik/lib/ruby_mapnik/mapnik/projection.rb:37:in `inverse'
/home/mapnik/src/Ruby-Mapnik/test/test_mapnik_projection.rb:33:in `test_should_inverse_envelopes'

19) Error:
test_should_inverse_points(TestMapnikProjection):
NoMethodError: undefined method `__inverse_pt__' for #
/home/mapnik/src/Ruby-Mapnik/lib/ruby_mapnik/mapnik/projection.rb:39:in `inverse'
/home/mapnik/src/Ruby-Mapnik/test/test_mapnik_projection.rb:28:in `test_should_inverse_points'

20) Error:
test_should_append_and_remove_symbols(TestMapnikRule):
NameError: undefined local variable or method `__symbols__' for #
/home/mapnik/src/Ruby-Mapnik/lib/ruby_mapnik/mapnik/rule.rb:98:in `symbols'
/home/mapnik/src/Ruby-Mapnik/test/test_mapnik_rule.rb:50:in `test_should_append_and_remove_symbols'

21) Error:
test_should_have_dashes(TestMapnikStroke):
NameError: undefined local variable or method `__dashes__' for #
/home/mapnik/src/Ruby-Mapnik/lib/ruby_mapnik/mapnik/stroke.rb:49:in `dashes'
/home/mapnik/src/Ruby-Mapnik/test/test_mapnik_stroke.rb:81:in `test_should_have_dashes'

22) Error:
test_should_have_rules(TestMapnikStyle):
NameError: undefined local variable or method `__rules__' for #
/home/mapnik/src/Ruby-Mapnik/lib/ruby_mapnik/mapnik/style.rb:57:in `rules'
/home/mapnik/src/Ruby-Mapnik/test/test_mapnik_style.rb:11:in `test_should_have_rules'

233 tests, 487 assertions, 0 failures, 22 errors, 0 skips

Test run options: --seed 1287
rake aborted!
Command failed with status (1): [/home/mapnik/.rvm/rubies/ruby-1.9.2-p290/b...]

Tasks: TOP => test
(See full trace by running task with --trace)
```