Sha256: 38658b1122847e3528efe62b6572cb2941c15057448a92b827f29ec63f1943e8

Contents?: true

Size: 476 Bytes

Versions: 19

Compression:

Stored size: 476 Bytes

Contents

require "test_helper"

class TestChartkick < Minitest::Test
  include Chartkick::Helper

  # TODO actual tests

  def setup
    @data = [[34, 42], [56, 49]]
  end

  def test_line_chart
    assert line_chart(@data)
  end

  def test_pie_chart
    assert pie_chart(@data)
  end

  def test_column_chart
    assert column_chart(@data)
  end

  def test_options_not_mutated
    options = {id: "boom"}
    line_chart @data, options
    assert_equal "boom", options[:id]
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
chartkick-2.2.5 test/chartkick_test.rb
chartkick-2.2.4 test/chartkick_test.rb
chartkick-2.2.3 test/chartkick_test.rb
chartkick-2.2.2 test/chartkick_test.rb
chartkick-2.2.1 test/chartkick_test.rb
chartkick-2.2.0 test/chartkick_test.rb
chartkick-2.1.3 test/chartkick_test.rb
chartkick-2.1.2 test/chartkick_test.rb
chartkick-2.1.1 test/chartkick_test.rb
chartkick-2.1.0 test/chartkick_test.rb
chartkick-2.0.2 test/chartkick_test.rb
chartkick-2.0.1 test/chartkick_test.rb
chartkick-2.0.0 test/chartkick_test.rb
chartkick-1.5.2 test/chartkick_test.rb
chartkick-1.5.1 test/chartkick_test.rb
chartkick-1.5.0 test/chartkick_test.rb
chartkick-1.4.2 test/chartkick_test.rb
chartkick-1.4.1 test/chartkick_test.rb
chartkick-1.4.0 test/chartkick_test.rb