Skip to content

Commit

Permalink
fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jul 21, 2021
1 parent 03905d1 commit bb2c4b5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion spec/graphql/types/data_management_plan_type_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@
response = LupoSchema.execute(query).as_json

expect(response.dig("data", "dataManagementPlan", "id")).to eq(
"https://handle.test.datacite.org/#{doi.doi.downcase}",
"https://handle.stage.datacite.org/#{doi.doi.downcase}",
)
expect(
response.dig("data", "dataManagementPlan", "citations", "totalCount"),
Expand Down
4 changes: 2 additions & 2 deletions spec/graphql/types/organization_type_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@
organization = response.dig("data", "organizations", "nodes", 0)

expect(organization.fetch("id")).to eq("https://ror.org/01856cw59")
expect(organization.fetch("name")).to eq("University Hospital Münster")
expect(organization.fetch("name")).to eq("University Hospital M??nster")
expect(organization.fetch("types")).to eq(%w[Healthcare])
expect(organization.fetch("country")).to eq(
"id" => "DE", "name" => "Germany",
Expand Down Expand Up @@ -1063,7 +1063,7 @@
organization = response.dig("data", "organizations", "nodes", 0)
expect(organization.fetch("id")).to eq("https://ror.org/04bqwzd17")
expect(organization.fetch("name")).to eq(
"Bayerisches Landesamt für Gesundheit und Lebensmittelsicherheit",
"Bayerisches Landesamt f??r Gesundheit und Lebensmittelsicherheit",
)
expect(organization.fetch("types")).to eq(%w[Government])
expect(organization.fetch("country")).to eq(
Expand Down
2 changes: 1 addition & 1 deletion spec/graphql/types/software_type_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
response = LupoSchema.execute(query).as_json

expect(response.dig("data", "software", "id")).to eq(
"https://handle.test.datacite.org/" + software.uid,
"https://handle.stage.datacite.org/" + software.uid,
)
expect(response.dig("data", "software", "formattedCitation")).to eq(
"Ollomo, B., Durand, P., Prugnolle, F., Douzery, E. J. P., Arnathau, C., Nkoghe, D., Leroy, E., &amp; Renaud, F. (2011). <i>Data from: A new malaria agent in African hominids.</i> (Version 1.0.1) [Computer software]. Dryad Digital Repository. <a href='https://doi.org/10.14454/12345'>https://doi.org/10.14454/12345</a>",
Expand Down
8 changes: 4 additions & 4 deletions spec/graphql/types/work_type_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
response = LupoSchema.execute(query).as_json

expect(response.dig("data", "work", "id")).to eq(
"https://handle.test.datacite.org/#{work.doi.downcase}",
"https://handle.stage.datacite.org/#{work.doi.downcase}",
)
expect(response.dig("data", "work", "container")).to eq(
"identifier" => "0020-1693",
Expand Down Expand Up @@ -158,7 +158,7 @@
as_json

expect(response.dig("data", "work", "id")).to eq(
"https://handle.test.datacite.org/#{work.doi.downcase}",
"https://handle.stage.datacite.org/#{work.doi.downcase}",
)
expect(response.dig("data", "work", "claims")).to eq(
[
Expand Down Expand Up @@ -210,7 +210,7 @@
as_json

expect(response.dig("data", "work", "id")).to eq(
"https://handle.test.datacite.org/#{work.doi.downcase}",
"https://handle.stage.datacite.org/#{work.doi.downcase}",
)
expect(response.dig("data", "work", "claims")).to eq(
[
Expand Down Expand Up @@ -260,7 +260,7 @@
response = LupoSchema.execute(query).as_json

expect(response.dig("data", "work", "id")).to eq(
"https://handle.test.datacite.org/#{work.doi.downcase}",
"https://handle.stage.datacite.org/#{work.doi.downcase}",
)
expect(response.dig("data", "work", "titles")).to eq(
[{ "title" => "Nanometre-scale thermometry in a living cell" }],
Expand Down

0 comments on commit bb2c4b5

Please sign in to comment.