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