Skip to content

Commit

Permalink
Merge pull request #119 from pulibrary/116-quarto
Browse files Browse the repository at this point in the history
Map Quarto to "S" prefix.
  • Loading branch information
hackartisan authored Apr 6, 2023
2 parents 89c69ee + 198999a commit 98e92f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/values/container_profile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def self.sizes
"Standard manuscript" => "S",
"Standard half-manuscript" => "S",
"Standard other" => "S",
"Quarto" => "S",
"Mudd OS open" => "O",
"Mudd OS folder" => "C",
"Mudd OS height, depth-extra" => "XHD"
Expand Down
1 change: 1 addition & 0 deletions spec/values/container_profile_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
it "switches between S and B for shared box sizes in mudd/firestone" do
expect(described_class.new("name" => "Standard manuscript").abid_prefix(pool_identifier: "firestone")).to eq "B"
expect(described_class.new("name" => "Standard manuscript").abid_prefix(pool_identifier: "mudd")).to eq "S"
expect(described_class.new("name" => "Quarto").abid_prefix(pool_identifier: "mudd")).to eq "S"
end
it "returns unknown for unknown pool identifiers or names" do
expect(described_class.new("name" => "Standard manuscript").abid_prefix(pool_identifier: "dunno")).to eq "UNKNOWN"
Expand Down

0 comments on commit 98e92f8

Please sign in to comment.