Skip to content

Commit

Permalink
updated relaton cache and fixed failing test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
HassanAkbar committed Mar 18, 2024
1 parent 7c29dec commit ab3948e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/glossarist/collections/bibliography_collection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def populate_bibliographies(concepts)
concept.default_lang.sources.each do |source|
next if source.origin.text.nil?

puts "[debug] fetching #{source.origin.text}"
fetch(source.origin.text)
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/relaton_cache/iso/iso_ts_14812_2022.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<bibdata type="standard" schema-version="v1.2.8">
<fetched>2024-02-26</fetched>
<fetched>2024-03-18</fetched>
<title type="title-intro" format="text/plain" language="en" script="Latn">Intelligent transport systems</title>
<title type="title-main" format="text/plain" language="en" script="Latn">Vocabulary</title>
<title type="main" format="text/plain" language="en" script="Latn">Intelligent transport systems - Vocabulary</title>
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/collection/bibliography_collection_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

it "populated bibliography correctly" do
items = subject.fetch_all
expect(items.size).to be 6
expect(items.size).to be 5
expect(items[0]).to be_instance_of RelatonIsoBib::IsoBibliographicItem
end

Expand Down

0 comments on commit ab3948e

Please sign in to comment.