Added the Gruff library to the lib/ directory of the the rails folder, and the
[selectricity] / lib / gruff-0.2.8 / test / test_mini_pie.rb
diff --git a/lib/gruff-0.2.8/test/test_mini_pie.rb b/lib/gruff-0.2.8/test/test_mini_pie.rb
new file mode 100644 (file)
index 0000000..87ff58a
--- /dev/null
@@ -0,0 +1,20 @@
+
+require File.dirname(__FILE__) + "/gruff_test_case"
+
+class TestMiniPie < GruffTestCase
+  
+  def test_simple_pie
+    g = setup_basic_graph(Gruff::Mini::Pie, 200)
+    write_test_file g, 'mini_pie.png'
+  end
+
+  # def test_code_sample    
+  #   g = Gruff::Mini::Pie.new(200)
+  #   g.data "Car", 200
+  #   g.data "Food", 500
+  #   g.data "Art", 1000
+  #   g.data "Music", 16
+  #   g.write "mini_pie.png"    
+  # end
+
+end

Benjamin Mako Hill || Want to submit a patch?