Sha256: 637ebea7fbeb97c8342697b13538e2ad7f8e007a893f270fd96ab2bfe698bfaf

Contents?: true

Size: 450 Bytes

Versions: 58

Compression:

Stored size: 450 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

module Synvert::Core
  describe Rewriter::RubyVersion do
    it 'returns true if ruby version is greater than 1.9' do
      ruby_version = Rewriter::RubyVersion.new('1.9')
      expect(ruby_version).to be_match
    end

    it 'returns false if ruby version is less than 19.0' do
      ruby_version = Rewriter::RubyVersion.new('19.0')
      expect(ruby_version).not_to be_match
    end
  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
synvert-core-0.56.0 spec/synvert/core/rewriter/ruby_version_spec.rb
synvert-core-0.55.0 spec/synvert/core/rewriter/ruby_version_spec.rb
synvert-core-0.54.3 spec/synvert/core/rewriter/ruby_version_spec.rb
synvert-core-0.54.2 spec/synvert/core/rewriter/ruby_version_spec.rb
synvert-core-0.54.1 spec/synvert/core/rewriter/ruby_version_spec.rb
synvert-core-0.54.0 spec/synvert/core/rewriter/ruby_version_spec.rb
synvert-core-0.53.0 spec/synvert/core/rewriter/ruby_version_spec.rb
synvert-core-0.52.1 spec/synvert/core/rewriter/ruby_version_spec.rb
synvert-core-0.52.0 spec/synvert/core/rewriter/ruby_version_spec.rb
synvert-core-0.51.1 spec/synvert/core/rewriter/ruby_version_spec.rb
synvert-core-0.51.0 spec/synvert/core/rewriter/ruby_version_spec.rb
synvert-core-0.50.0 spec/synvert/core/rewriter/ruby_version_spec.rb
synvert-core-0.49.1 spec/synvert/core/rewriter/ruby_version_spec.rb
synvert-core-0.49.0 spec/synvert/core/rewriter/ruby_version_spec.rb
synvert-core-0.48.0 spec/synvert/core/rewriter/ruby_version_spec.rb
synvert-core-0.47.0 spec/synvert/core/rewriter/ruby_version_spec.rb
synvert-core-0.46.0 spec/synvert/core/rewriter/ruby_version_spec.rb
synvert-core-0.45.2 spec/synvert/core/rewriter/ruby_version_spec.rb
synvert-core-0.45.1 spec/synvert/core/rewriter/ruby_version_spec.rb
synvert-core-0.45.0 spec/synvert/core/rewriter/ruby_version_spec.rb