Skip to content

Commit

Permalink
code refactoring and updated specs
Browse files Browse the repository at this point in the history
  • Loading branch information
HassanAkbar committed Mar 6, 2024
1 parent 3e91dc1 commit 60811ed
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion lib/jekyll-geolexica.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@
# two conventions together, otherwise this plugin won't work if loaded
# via _config.yml.
require "jekyll/geolexica"
require "glossarist"
1 change: 1 addition & 0 deletions lib/jekyll/geolexica.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#

require "jekyll"
require "glossarist"

module Jekyll
module Geolexica
Expand Down
2 changes: 1 addition & 1 deletion lib/jekyll/geolexica/glossary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def load_glossary
@collection.each do |managed_concept|
concept_hash = {
"id" => managed_concept.uuid,
"term" => managed_concept.id,
"term" => managed_concept.default_designation,
"termid" => managed_concept.id,
}.merge(managed_concept.to_h)

Expand Down
4 changes: 2 additions & 2 deletions spec/unit/jekyll/geolexica/glossary_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
let(:expected_data) do
{
"id" => "055c7785-e3c2-4df0-bcbc-83c1314864af",
"term" => "SPP",
"term" => "association <UML>",
"termid" => "SPP",
"data" => {
"identifier" => "SPP",
Expand Down Expand Up @@ -476,7 +476,7 @@
let(:expected_data) do
{
"id" => "18e02fe9-e52d-50a0-84ac-9fccae815fbd",
"term" => "10",
"term" => "admitted term",
"termid" => "10",
"data" => {
"identifier" => "10",
Expand Down

0 comments on commit 60811ed

Please sign in to comment.