Skip to content

Commit

Permalink
Adding values for isbn, and issn.
Browse files Browse the repository at this point in the history
  • Loading branch information
erinesullivan committed Nov 5, 2024
1 parent 8273f58 commit d29da55
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions spec/models/carousel_list_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ def body(file_name)
describe CarouselList::CarouselItem do
before(:each) do
@catalog_doc = JSON.parse(fixture("biblio_results.json"))["response"]["docs"].first
@catalog_doc["isbn"] = ["1-5011-8342-7"]
@catalog_doc["issn"] = ["1096-9942"]
@browse_doc = JSON.parse(fixture("callnumbers_results.json"))["response"]["docs"].first
end
subject do
Expand All @@ -35,10 +37,10 @@ def body(file_name)
expect(subject.call_number).to eq("Z 253 .U6 1963")
end
it "has an isbn" do
expect(subject.isbn).to eq(nil)
expect(subject.isbn).to eq("1-5011-8342-7")
end
it "has an issn" do
expect(subject.issn).to eq(nil)
expect(subject.issn).to eq("1096-9942")
end
it "has an oclc" do
expect(subject.oclc).to eq("2497305")
Expand All @@ -58,8 +60,8 @@ def body(file_name)
author: "United States. Government Printing Office",
call_number: "Z 253 .U6 1963",
date: "1950",
isbn: nil,
issn: nil,
isbn: "1-5011-8342-7",
issn: "1096-9942",
oclc: "2497305",
title: "Theory and practice of composition.",
url: "#{S.search_url}/catalog/record/990011613060106381"
Expand Down

0 comments on commit d29da55

Please sign in to comment.