fix security issue
[selectricity] / lib / gruff-0.2.8 / test / test_photo.rb
1 #!/usr/bin/ruby
2
3 require File.dirname(__FILE__) + "/gruff_test_case"
4
5 class TestGruffPhotoBar < GruffTestCase
6
7 #   def setup
8 #     @datasets = [
9 #       [:Jimmy, [25, 36, 86, 39]],
10 #       [:Charles, [80, 54, 67, 54]],
11 # #      [:Charity, [0, nil, 100, 90]],
12 #       ]
13 #   end
14
15 #   def test_bar_graph
16 #     bar_graph_sized
17 #     bar_graph_sized(400)
18 #   end
19
20
21 # protected
22
23 #   def bar_graph_sized(size=800)
24 #     g = Gruff::PhotoBar.new(size)
25 #     g.title = "Photo Bar Graph Test #{size}px"
26 #     g.labels = {
27 #       0 => '5/6', 
28 #       1 => '5/15', 
29 #       2 => '5/24', 
30 #       3 => '5/30', 
31 #     }
32 #     @datasets.each do |data|
33 #       g.data(*data)
34 #     end
35
36 #     g.theme = 'plastik'
37
38 #     g.write("test/output/photo_plastik_#{size}.png")    
39 #   end
40
41 end

Benjamin Mako Hill || Want to submit a patch?