Sha256: 7b0d958ed85bdb336d9cc386d820e9b540777d2b21043c5afffc2cdd99411e46

Contents?: true

Size: 656 Bytes

Versions: 12

Compression:

Stored size: 656 Bytes

Contents

require 'helper'
require 'parser/current'

class TestCurrent < Minitest::Test
  def test_current
    case RUBY_VERSION
    when '1.8.7'
      assert_equal Parser::Ruby18, Parser::CurrentRuby
    when '1.9.2', '1.9.3'
      assert_equal Parser::Ruby19, Parser::CurrentRuby
    when '2.0.0'
      assert_equal Parser::Ruby20, Parser::CurrentRuby
    when /^2\.1\.\d+/
      assert_equal Parser::Ruby21, Parser::CurrentRuby
    when /^2\.2\.\d+/
      assert_equal Parser::Ruby22, Parser::CurrentRuby
    when /^2\.3\.\d+/
      assert_equal Parser::Ruby22, Parser::CurrentRuby
    else
      flunk "Update test_current for #{RUBY_VERSION}"
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
parser-2.2.3.0 test/test_current.rb
parser-2.2.2.6 test/test_current.rb
parser-2.3.0.pre.2 test/test_current.rb
parser-2.3.0.pre.1 test/test_current.rb
parser-2.2.2.5 test/test_current.rb
parser-2.2.2.3 test/test_current.rb
parser-2.2.2.2 test/test_current.rb
parser-2.2.2.1 test/test_current.rb
parser-2.2.2.0 test/test_current.rb
parser-2.2.0.4 test/test_current.rb
parser-2.2.0.3 test/test_current.rb
parser-2.2.0.2 test/test_current.rb