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
gruff-0.2.7 test/test_mini_side_bar.rb
gruff-0.3.0 test/test_mini_side_bar.rb
gruff-0.3.3 test/test_mini_side_bar.rb
gruff-0.3.4 test/test_mini_side_bar.rb
gruff-0.3.1 test/test_mini_side_bar.rb
rmagick4j-0.3.5 test/gruff_tests/test/test_mini_side_bar.rb
rmagick4j-0.3.7 test/gruff_tests/test/test_mini_side_bar.rb
rmagick4j-0.3.6 test/gruff_tests/test/test_mini_side_bar.rb