Sha256: 453134901df134cec9a634e96d2364e23c58847077eb8ee3bb76fea4696b8611

Contents?: true

Size: 810 Bytes

Versions: 16

Compression:

Stored size: 810 Bytes

Contents

require File.dirname(__FILE__) + "/gruff_test_case"

class TestMiniBar < GruffTestCase
  
  def test_simple_bar
    setup_single_dataset
    g = setup_basic_graph(Gruff::Mini::Bar, 200)
    write_test_file g, 'mini_bar.png'
  end

  # def test_simple_bar_wide_dataset
  #   setup_wide_dataset
  #   g = setup_basic_graph(Gruff::Mini::Bar, 200)
  #   write_test_file g, 'mini_bar_wide_data.png'
  # end
  # 
  # def test_code_sample
  #   g = Gruff::Mini::Bar.new(200)
  #   g.data "Jim", [200, 500, 400]
  #   g.labels = { 0 => 'This Month', 1 => 'Average', 2 => 'Overall'}
  #   g.write "mini_bar_one_color.png"
  #   
  #   g = Gruff::Mini::Bar.new(200)
  #   g.data "Car", 200
  #   g.data "Food", 500
  #   g.data "Art", 1000
  #   g.data "Music", 16
  #   g.write "mini_bar_many_colors.png"
  # end

end

Version data entries

16 entries across 16 versions & 6 rubygems

Version Path
jslade-gruff-0.3.5 test/test_mini_bar.rb
schapht-gruff-0.3.5 test/test_mini_bar.rb
topfunky-gruff-0.3.2 test/test_mini_bar.rb
topfunky-gruff-0.3.3 test/test_mini_bar.rb
topfunky-gruff-0.3.5 test/test_mini_bar.rb
woodhull-gruff-0.3.5 test/test_mini_bar.rb
gruff-0.2.9 test/test_mini_bar.rb
gruff-0.2.7 test/test_mini_bar.rb
gruff-0.2.6 test/test_mini_bar.rb
gruff-0.3.0 test/test_mini_bar.rb
gruff-0.2.8 test/test_mini_bar.rb
gruff-0.3.3 test/test_mini_bar.rb
gruff-0.3.1 test/test_mini_bar.rb
gruff-0.3.4 test/test_mini_bar.rb
rmagick4j-0.3.5 test/gruff_tests/test/test_mini_bar.rb
rmagick4j-0.3.6 test/gruff_tests/test/test_mini_bar.rb