test/test_svg_graph.rb in svg-graph-1.0.4 vs test/test_svg_graph.rb in svg-graph-1.0.5

- old
+ new

@@ -3,23 +3,24 @@ require "svggraph" require "SVG/Graph/DataPoint" class TestSvgGraph < Test::Unit::TestCase def test_bar_line_and_pie - fields = %w(Jan Feb Mar); - data_sales_02 = [12, 45, 21] - [SVG::Graph::Bar, SVG::Graph::BarHorizontal, SVG::Graph::Line, SVG::Graph::Pie].each do - |klass| - graph = klass.new( - :height => 500, - :width => 300, - :fields => fields - ) - graph.add_data( - :data => data_sales_02, - :title => 'Sales 2002' - ) - out=graph.burn - assert(out=~/Created with SVG::Graph/) - end + fields = %w(Jan Feb Mar); + data_sales_02 = [12, 45, 21] + [SVG::Graph::Bar, SVG::Graph::BarHorizontal, SVG::Graph::Line, SVG::Graph::Pie].each do + |klass| + graph = klass.new( + :height => 500, + :width => 300, + :fields => fields + ) + graph.add_data( + :data => data_sales_02, + :title => 'Sales 2002' + ) + out=graph.burn + assert(out=~/Created with SVG::Graph/) + end end end +