Sha256: 1c265c87e86c49bf113f7906452343a2d6708ae81b5d768bbcecced176676bbb

Contents?: true

Size: 358 Bytes

Versions: 2

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$')[:data]
    assert_equal 1, output.scan(/<svg/).size, 'should only contain one svg'
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mathematical-1.1.1 test/mathematical/basic_test.rb
mathematical-1.1.0 test/mathematical/basic_test.rb