Sha256: fcdcd7e5a221213d64a55779d688623d18c81fdf769b5fe3a7192301c324b05a

Contents?: true

Size: 352 Bytes

Versions: 3

Compression:

Stored size: 352 Bytes

Contents

require 'minitest/autorun'
require 'qbxml'

class VersionTest < Minitest::Test

  def test_string_version
    Qbxml.new(:qb, '7.0')
  end

  def test_bad_version
    assert_raises RuntimeError do
      Qbxml.new(:qb, '3.14')
    end
  end

  def test_float_version
    Qbxml.new(:qb, 7.0)
  end

  def test_int_version
    Qbxml.new(:qb, 7)
  end

end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
mrglass-qbxml-1.0.0 test/unit/version_test.rb
qbxml-0.4.0 test/unit/version_test.rb
qbxml-0.3.0 test/unit/version_test.rb