Sha256: 3f545c0f32061c089f6d0cf1833ef016822a88a00135425fdb8b2c097ca16a0f

Contents?: true

Size: 775 Bytes

Versions: 28

Compression:

Stored size: 775 Bytes

Contents

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

class TestMiniSideBar < GruffTestCase
    
  def test_one_color
    # Use a single data set
    @datasets = [
        [:Jimmy, [25, 36, 86, 39]]
      ]
    @labels = {
        0 => 'Auto', 
        1 => 'Entertainment', 
        2 => 'Food',
        3 => 'Bus'
      }

    g = setup_basic_graph(Gruff::Mini::SideBar, 200)
    write_test_file g, 'mini_side_bar.png'    
  end

  def test_multi_color
    # @datasets = [
    #     [:Jimmy, [25, 36, 86, 39]]
    #   ]
    # @labels = {
    #     0 => 'Auto', 
    #     1 => 'Entertainment', 
    #     2 => 'Food',
    #     3 => 'Bus'
    #   }

    g = setup_basic_graph(Gruff::Mini::SideBar, 200)
    write_test_file g, 'mini_side_bar_multi_color.png'    
  end

end

Version data entries

28 entries across 28 versions & 11 rubygems

Version Path
rmagick4j-0.4.0-java test/gruff_tests/test/test_mini_side_bar.rb
rmagick4j-0.3.9-java test/gruff_tests/test/test_mini_side_bar.rb
jslade-gruff-0.3.5 test/test_mini_side_bar.rb
schapht-gruff-0.3.5 test/test_mini_side_bar.rb
topfunky-gruff-0.3.2 test/test_mini_side_bar.rb
topfunky-gruff-0.3.3 test/test_mini_side_bar.rb
topfunky-gruff-0.3.5 test/test_mini_side_bar.rb
umang-gruff-0.3.6 test/test_mini_side_bar.rb
woodhull-gruff-0.3.5 test/test_mini_side_bar.rb
rmagick4j-0.3.8 test/gruff_tests/test/test_mini_side_bar.rb
fhs-gruff-0.3.6.2 test/test_mini_side_bar.rb
pfsc_gruff-0.3.6 test/test_mini_side_bar.rb
pfsc-gruff-0.3.6 test/test_mini_side_bar.rb
teejayvanslyke-gruff-0.4.1 test/test_mini_side_bar.rb
teejayvanslyke-gruff-0.4.0 test/test_mini_side_bar.rb
teejayvanslyke-gruff-0.3.8 test/test_mini_side_bar.rb
teejayvanslyke-gruff-0.3.6 test/test_mini_side_bar.rb
gruff-0.3.6 test/test_mini_side_bar.rb
gruff-0.2.9 test/test_mini_side_bar.rb
gruff-0.2.8 test/test_mini_side_bar.rb