Sha256: b987c89a498d43a2aba87381e0e9de1fa3783bb9078f3cbb369163f39d7b6c4b
Contents?: true
Size: 604 Bytes
Versions: 4
Compression:
Stored size: 604 Bytes
Contents
require "spec_helper" require_relative "../../../lib/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
4 entries across 4 versions & 1 rubygems