diff --git a/Rakefile b/Rakefile index aab51c4..af75d06 100644 --- a/Rakefile +++ b/Rakefile @@ -42,7 +42,7 @@ end namespace :lint do desc "Verify no raw MDC_P### / MDC_C### literals outside the registry files" task :registry do - sh "bin/lint-no-raw-mdc" + sh "bash", "bin/lint-no-raw-mdc" end end diff --git a/bin/lint-no-raw-mdc b/bin/lint-no-raw-mdc index b1bbdfb..c9b91f6 100755 --- a/bin/lint-no-raw-mdc +++ b/bin/lint-no-raw-mdc @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # lint-no-raw-mdc — fail if any raw MDC_P### / MDC_C### / EXT_P### / # EXT_C### / CIM_P### string literal appears in lib/opencdd/ outside # the designated SSOT files. diff --git "a/reference-docs/parcelmaker/Parcel Maker5.2.1/\005SummaryInformation" b/reference-docs/parcelmaker/Parcel Maker5.2.1/SummaryInformation similarity index 100% rename from "reference-docs/parcelmaker/Parcel Maker5.2.1/\005SummaryInformation" rename to reference-docs/parcelmaker/Parcel Maker5.2.1/SummaryInformation diff --git a/spec/model/entity_store_spec.rb b/spec/model/entity_store_spec.rb index 447246d..6d972d7 100644 --- a/spec/model/entity_store_spec.rb +++ b/spec/model/entity_store_spec.rb @@ -73,9 +73,14 @@ end describe Opencdd::Model::EntityStore do - it "initializes with a path" do - store = described_class.new("/tmp/test-store") - expect(store.path).to eq("/tmp/test-store") + it "expands a relative path against the working directory" do + Dir.mktmpdir("entity-store") do |dir| + Dir.chdir(dir) do + store = described_class.new("nested-store") + expect(store.path).to eq(File.expand_path("nested-store")) + expect(store.path).not_to eq("nested-store") + end + end end it "save_database writes files to disk" do