Sha256: ac07e7d406be5375cb02140aecc37b8e2b1ba0ddb5e4f44b5548ed59ab0d7a5e

Contents?: true

Size: 586 Bytes

Versions: 11

Compression:

Stored size: 586 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
    else
      flunk "Update test_parser_current for #{RUBY_VERSION}"
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
rubyjobbuilderdsl-0.0.2 vendor/bundle/ruby/2.1.0/gems/parser-2.2.0.pre.4/test/test_current.rb
rubyjobbuilderdsl-0.0.1 vendor/bundle/ruby/2.1.0/gems/parser-2.2.0.pre.4/test/test_current.rb
parser-2.2.0.1 test/test_current.rb
parser-2.2.0 test/test_current.rb
parser-2.2.0.pre.8 test/test_current.rb
parser-2.2.0.pre.7 test/test_current.rb
parser-2.2.0.pre.6 test/test_current.rb
parser-2.2.0.pre.5 test/test_current.rb
parser-2.2.0.pre.4 test/test_current.rb
parser-2.2.0.pre.3 test/test_current.rb
parser-2.2.0.pre.2 test/test_current.rb