Sha256: 1ef40a0642912d4922d4aa577749d7fc2fda89a381e68695b4535f3b5598aeb7

Contents?: true

Size: 592 Bytes

Versions: 2

Compression:

Stored size: 592 Bytes

Contents

require 'helper'

class TestGrafico < Test::Unit::TestCase
  def setup
    @helper = TestHelper.new
  end
  
  def test_setup
    assert_instance_of TestHelper, @helper
  end
  
  def test_graph_tag
    assert_equal @helper.graph_tag('FooGraph', 'my_element', [1, 2, 3]), wrap_as_javascript("var my_elementFooGraph = new Grafico.FooGraph($('my_element'), [1,2,3]);")
  end

  def test_line_graph_tag
    assert_equal @helper.line_graph_tag('my_element', [1, 2, 3]), wrap_as_javascript("var my_elementLineGraph = new Grafico.LineGraph($('my_element'), [1,2,3]);")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
grafico-0.1.1 test/test_grafico.rb
grafico-0.1.0 test/test_grafico.rb