Sha256: e394338073c5bffe8593b9881d25015f0bbc8c3ba5559877f6c73d0eecdb0721

Contents?: true

Size: 582 Bytes

Versions: 39

Compression:

Stored size: 582 Bytes

Contents

require "spec_helper"
require "expressir/express_exp/parser"

RSpec.describe Expressir::ExpressExp::Parser do
  describe ".from_file" do
    it "build an instance from a file" do
      repo = Expressir::ExpressExp::Parser.from_exp(sample_file)

      schemas = repo.schemas
      expect(schemas.count).to eq(1)

      schema = schemas.first
      expect(schema.id).to eq("Ap233_systems_engineering_arm_LF")
    end
  end

  def sample_file
    @sample_file ||= Expressir.root_path.join(
      "original", "examples", "ap233", "ap233e1_arm_lf_stepmod-2010-11-12.exp"
    )
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
expressir-0.2.11 spec/expressir/express_exp/ap233_spec.rb
expressir-0.2.11-x86_64-linux spec/expressir/express_exp/ap233_spec.rb
expressir-0.2.11-x86_64-darwin spec/expressir/express_exp/ap233_spec.rb
expressir-0.2.11-x86-mingw32 spec/expressir/express_exp/ap233_spec.rb
expressir-0.2.11-x86-linux spec/expressir/express_exp/ap233_spec.rb
expressir-0.2.11-x64-mingw32 spec/expressir/express_exp/ap233_spec.rb
expressir-0.2.11-arm64-darwin spec/expressir/express_exp/ap233_spec.rb
expressir-0.2.10 spec/expressir/express_exp/ap233_spec.rb
expressir-0.2.10-x86_64-linux spec/expressir/express_exp/ap233_spec.rb
expressir-0.2.10-x86_64-darwin spec/expressir/express_exp/ap233_spec.rb
expressir-0.2.10-x86-mingw32 spec/expressir/express_exp/ap233_spec.rb
expressir-0.2.10-x86-linux spec/expressir/express_exp/ap233_spec.rb
expressir-0.2.10-x64-mingw32 spec/expressir/express_exp/ap233_spec.rb
expressir-0.2.10-arm64-darwin spec/expressir/express_exp/ap233_spec.rb
expressir-0.2.9 spec/expressir/express_exp/ap233_spec.rb
expressir-0.2.9-x86_64-linux spec/expressir/express_exp/ap233_spec.rb
expressir-0.2.9-x86_64-darwin spec/expressir/express_exp/ap233_spec.rb
expressir-0.2.9-x86-mingw32 spec/expressir/express_exp/ap233_spec.rb
expressir-0.2.9-x86-linux spec/expressir/express_exp/ap233_spec.rb
expressir-0.2.9-x64-mingw32 spec/expressir/express_exp/ap233_spec.rb