Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions bin/lint-no-raw-mdc
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
11 changes: 8 additions & 3 deletions spec/model/entity_store_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading