Sha256: afacbce39065de2170afd984030ea262bd01cc924f375da54aa1d439eef34813

Contents?: true

Size: 733 Bytes

Versions: 13

Compression:

Stored size: 733 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::Ruby23, Parser::CurrentRuby
    when /^2\.4\.\d+/
      assert_equal Parser::Ruby24, Parser::CurrentRuby
    else
      flunk "Update test_current for #{RUBY_VERSION}"
    end
  end
end

Version data entries

13 entries across 13 versions & 4 rubygems

Version Path
dirwatch-0.0.2 vendor/bundle/ruby/2.3.0/gems/parser-2.4.0.0/test/test_current.rb
fluent-plugin-detect-memb-exceptions-0.0.2 vendor/bundle/ruby/2.0.0/gems/parser-2.4.0.0/test/test_current.rb
fluent-plugin-detect-memb-exceptions-0.0.1 vendor/bundle/ruby/2.0.0/gems/parser-2.4.0.0/test/test_current.rb
parser-2.4.0.0 test/test_current.rb
parser-2.3.3.1 test/test_current.rb
parser-2.3.3.0 test/test_current.rb
parser-2.3.2.0 test/test_current.rb
parser-2.3.1.4 test/test_current.rb
parser-2.3.1.3 test/test_current.rb
erruby_parser-2.3.1.2 test/test_current.rb
parser-2.3.1.2 test/test_current.rb
parser-2.3.1.1 test/test_current.rb
parser-2.3.1.0 test/test_current.rb