Sha256: f3cf190e9c216aadcdd418c741551e38329d9d32bf83e76d3ee69294dc1da80b
Contents?: true
Size: 1.05 KB
Versions: 7
Compression:
Stored size: 1.05 KB
Contents
# frozen_string_literal: true require "spec_helper" RSpec.describe Lutaml::Express::Parsers::Exp do describe ".parse" do subject(:parse) { described_class.parse(content) } context "when simple diagram without attributes" do let(:content) do File.new(fixtures_path("test.exp")) end it "creates Expressir::Model::Repository object from supplied exp file" do expect(parse).to be_instance_of(Expressir::Model::Repository) end it "correctly reads schema attributes" do expect(parse.schemas.first.id).to(eq('annotated_3d_model_data_quality_criteria_schema')) expect(parse.schemas.first.entities.map(&:id)) .to(eq(["a3m_data_quality_criteria_representation", "a3m_data_quality_criterion", "a3m_data_quality_criterion_specific_applied_value", "a3m_data_quality_target_accuracy_association", "a3m_detailed_report_request", "a3m_summary_report_request_with_representative_value"])) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems