Sha256: 220f5fb02147bc83d4a649a37645746384a974e68f6635e7af4aa5686ce6d60a

Contents?: true

Size: 442 Bytes

Versions: 11

Compression:

Stored size: 442 Bytes

Contents

require 'helper'
require 'parser/current'

class TestCurrent < MiniTest::Unit::TestCase
  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
    else
      flunk "Update test_parser_current for #{RUBY_VERSION}"
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
parser-1.4.2 test/test_current.rb
parser-1.4.1 test/test_current.rb
parser-2.0.0.beta1 test/test_current.rb
parser-1.4.0 test/test_current.rb
parser-1.3.4 test/test_current.rb
parser-1.3.3 test/test_current.rb
parser-1.3.2 test/test_current.rb
parser-1.3.1 test/test_current.rb
parser-1.3.0 test/test_current.rb
parser-1.2.0 test/test_current.rb
parser-1.1.0 test/test_current.rb