Sha256: 23f273395800081743c9998734ccf26f6b230412070c398d6726fdc930fc75e1

Contents?: true

Size: 358 Bytes

Versions: 1

Compression:

Stored size: 358 Bytes

Contents

require "test_helper"

class Mathematical::BasicTest < Test::Unit::TestCase

  def test_it_has_a_version
    assert Mathematical::VERSION
  end

  def test_multiple_calls
    render = Mathematical.new
    render.render('$\pi$')
    output = render.render('$\pi$')['svg']
    assert_equal 1, output.scan(/<svg/).size, 'should only contain one svg'
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mathematical-1.0.0 test/mathematical/basic_test.rb