Sha256: b3ed86c890a433e8a16ffd0bd5ced954008ba8a6d41f18901a165f5a085bd507
Contents?: true
Size: 637 Bytes
Versions: 2
Compression:
Stored size: 637 Bytes
Contents
# frozen_string_literal: true require File.expand_path("../test_helper.rb", File.dirname(__FILE__)) require "ruby_parser" describe "Using RipperRubyParser and RubyParser" do let :newparser do RipperRubyParser::Parser.new end let :oldparser do RubyParser.for_current_ruby end Dir.glob("lib/**/*.rb").each do |file| describe "for #{file}" do let :program do File.read file end it "gives the same result" do original = oldparser.parse program imitation = newparser.parse program _(formatted(imitation)).must_equal formatted(original) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ripper_ruby_parser-1.7.1 | test/end_to_end/lib_comparison_test.rb |
ripper_ruby_parser-1.7.0 | test/end_to_end/lib_comparison_test.rb |