Sha256: eb41f1ecc815107c36b74f4d7a605d05665c6dff6a64209b442bad3efeb29244

Contents?: true

Size: 597 Bytes

Versions: 3

Compression:

Stored size: 597 Bytes

Contents

require "spec_helper"
require "tmpdir"

describe "WireCompiler" do
  # Compile the contents of the generator_tests proto dir, and then assert
  # everything is where it should be.
  it "computes fully-qualified class names correctly" do
    with_descriptor("generator_test") do |descriptor|
      generated_classes = ghetto_parse_java_package(find_generated_files("generator_test", :wire))

      children = descriptor.all_descendants.map { |child|
        [child.name, child.fully_qualified_wire_name]
      }

      expect(children).to contain_exactly(*generated_classes.to_a)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
protobuf_descriptor-1.1.2 spec/wire_generator_spec.rb
protobuf_descriptor-1.1.1 spec/wire_generator_spec.rb
protobuf_descriptor-1.1.0 spec/wire_generator_spec.rb