Sha256: cafd506071e6e366103c83f4b7d4bcf93c263e9253a27a0c3714e1d54052c8cb

Contents?: true

Size: 594 Bytes

Versions: 12

Compression:

Stored size: 594 Bytes

Contents

require File.expand_path('../gruff_test_case', __FILE__)

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_pie_with_legend_right
    g = setup_basic_graph(Gruff::Mini::Pie, 200)
    g.legend_position = :right
    write_test_file g, 'mini_pie_right_legend.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

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/gruff-0.7.0/test/test_mini_pie.rb
gruff-0.7.0-java test/test_mini_pie.rb
gruff-0.7.0 test/test_mini_pie.rb
gruff-0.6.0-java test/test_mini_pie.rb
gruff-0.6.0 test/test_mini_pie.rb
gruff-0.5.1-java test/test_mini_pie.rb
gruff-0.5.1 test/test_mini_pie.rb
gruff-0.5.0-java test/test_mini_pie.rb
gruff-0.5.0 test/test_mini_pie.rb
gruff-0.4.0 test/test_mini_pie.rb
gruff-0.4.0-java test/test_mini_pie.rb
gruff-0.3.7 test/test_mini_pie.rb