Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix specs for merged pull request #3194 from abbistani/ANW-2025 #3212

Merged
merged 1 commit into from
May 23, 2024
Merged
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
1 change: 1 addition & 0 deletions _yard/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ GEM

PLATFORMS
universal-java-1.8
universal-java-17

DEPENDENCIES
kramdown
Expand Down
1 change: 1 addition & 0 deletions backend/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ GEM
PLATFORMS
universal-java-1.8
universal-java-11
universal-java-17

DEPENDENCIES
actionmailer (~> 5.2)
Expand Down
10 changes: 5 additions & 5 deletions backend/spec/export_dc_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,16 @@

it "has the correct namespaces" do
expect(@dc).to have_namespaces({
"xmlns" => "https://purl.org/dc/elements/1.1/",
"xmlns:dcterms" => "https://purl.org/dc/terms/",
"xmlns:xlink" => "https://www.w3.org/1999/xlink",
"xmlns:xsi" => "https://www.w3.org/2001/XMLSchema-instance"
"xmlns" => "http://purl.org/dc/elements/1.1/",
"xmlns:dcterms" => "http://purl.org/dc/terms/",
"xmlns:xlink" => "http://www.w3.org/1999/xlink",
"xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance"
})
end


it "points to the right schemas" do
schema_locations = "https://purl.org/dc/elements/1.1/ https://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd https://purl.org/dc/terms/ https://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd".split(" ").sort.join(" ")
schema_locations = "http://purl.org/dc/elements/1.1/ https://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd http://purl.org/dc/terms/ https://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd".split(" ").sort.join(" ")
expect(@dc.xpath("xmlns:dc", @dc.namespaces).attr("xsi:schemaLocation").value.split(" ").sort.join(" ")).to eq(schema_locations)
end

Expand Down
6 changes: 3 additions & 3 deletions backend/spec/export_eac_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@
it 'exports EAC with the correct namespaces' do
expect(@eac).to have_namespaces({
'xmlns' => 'urn:isbn:1-931666-33-4',
'xmlns:html' => 'https://www.w3.org/1999/xhtml',
'xmlns:xlink' => 'https://www.w3.org/1999/xlink',
'xmlns:xsi' => 'https://www.w3.org/2001/XMLSchema-instance'
'xmlns:html' => 'http://www.w3.org/1999/xhtml',
'xmlns:xlink' => 'http://www.w3.org/1999/xlink',
'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance'
})
end

Expand Down
4 changes: 2 additions & 2 deletions backend/spec/export_marc_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ def source_to_code(source)
end

it "root node should have xmlns:xsi defined" do
expect(@xml).to match(/<collection.*xmlns:xsi="https:\/\/www.w3.org\/2001\/XMLSchema-instance"/)
expect(@xml).to match(/<collection.*xmlns:xsi="http:\/\/www.w3.org\/2001\/XMLSchema-instance"/)
end

it "root node should have xsi:schemaLocation defined" do
expect(@xml).to match(/<collection.*xsi:schemaLocation="https:\/\/www.loc.gov\/MARC21\/slim https:\/\/www.loc.gov\/standards\/marcxml\/schema\/MARC21slim.xsd"/)
expect(@xml).to match(/<collection.*xsi:schemaLocation="http:\/\/www.loc.gov\/MARC21\/slim https:\/\/www.loc.gov\/standards\/marcxml\/schema\/MARC21slim.xsd"/)
end
end

Expand Down
12 changes: 6 additions & 6 deletions backend/spec/export_mets_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,17 @@

it "has the correct namespaces" do
expect(@mets).to have_namespaces({
"xmlns" => "https://www.loc.gov/METS/",
"xmlns:mods"=> "https://www.loc.gov/mods/v3",
"xmlns:dc"=> "https://purl.org/dc/elements/1.1/",
"xmlns:xlink" => "https://www.w3.org/1999/xlink",
"xmlns:xsi" => "https://www.w3.org/2001/XMLSchema-instance"
"xmlns" => "http://www.loc.gov/METS/",
"xmlns:mods"=> "http://www.loc.gov/mods/v3",
"xmlns:dc"=> "http://purl.org/dc/elements/1.1/",
"xmlns:xlink" => "http://www.w3.org/1999/xlink",
"xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance"
})
end


it "has the correct schema location" do
expect(@mets).to have_schema_location "https://www.loc.gov/METS/ https://www.loc.gov/standards/mets/mets.xsd"
expect(@mets).to have_schema_location "http://www.loc.gov/METS/ https://www.loc.gov/standards/mets/mets.xsd"
end


Expand Down
1 change: 1 addition & 0 deletions frontend/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ GEM
PLATFORMS
universal-java-1.8
universal-java-11
universal-java-17

DEPENDENCIES
activesupport
Expand Down
3 changes: 2 additions & 1 deletion indexer/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ GEM
nokogiri (>= 1.5.11, < 2.0.0)
formatador (0.3.0)
hashdiff (1.0.1)
concurrent-ruby (~> 1.0)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
ipaddress (0.8.3)
json (2.6.3-java)
json-schema (1.0.10)
Expand Down Expand Up @@ -106,6 +106,7 @@ GEM
PLATFORMS
universal-java-1.8
universal-java-11
universal-java-17

DEPENDENCIES
activesupport (< 6.0)
Expand Down
1 change: 1 addition & 0 deletions oai/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ GEM
PLATFORMS
universal-java-1.8
universal-java-11
universal-java-17

DEPENDENCIES
sinatra (~> 2.2)
Expand Down
1 change: 1 addition & 0 deletions public/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ GEM
PLATFORMS
universal-java-1.8
universal-java-11
universal-java-17

DEPENDENCIES
atomic (= 1.0.1)
Expand Down
Loading