Skip to content

Commit

Permalink
fixing hound comments
Browse files Browse the repository at this point in the history
  • Loading branch information
HassanAkbar authored and ronaldtse committed Apr 30, 2024
1 parent 9514ac3 commit ad777d8
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions spec/tc211/termbase_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,27 @@

context "localized_concept" do
describe "validate count" do
let(:localized_concepts_count) { Dir.glob("concepts/localized_concept/*").count }
let(:localized_concepts_count) do
Dir.glob("concepts/localized_concept/*").count
end

it "should to be 193" do
expect(localized_concepts_count).to eq(193)
end
end

describe "validate uuids" do
let(:localized_concept_files) { Dir.glob("concepts/localized_concept/*") }
let(:localized_concept_files) do
Dir.glob("concepts/localized_concept/*")
end

it "should match filenames to ids" do
localized_concept_files.each do |localized_concept_file|
filename = File.basename(localized_concept_file, ".yaml")
localized_concept = YAML.load(File.read(localized_concept_file), permitted_classes: [Date, Time])
localized_concept = YAML.safe_load(
File.read(localized_concept_file),
permitted_classes: [Date, Time],
)

expect(localized_concept["id"]).to eq(filename)
end
Expand Down

0 comments on commit ad777d8

Please sign in to comment.