fix 2 for sonyci_id #446
GitHub Actions / JUnit Test Report
failed
Dec 20, 2023 in 0s
281 tests run, 247 passed, 33 skipped, 1 failed.
Annotations
Check failure on line 170 in spec/models/bulkrax/pbcore_xml_entry_spec.rb
github-actions / JUnit Test Report
./spec/models/bulkrax/pbcore_xml_entry_spec.rb.Bulkrax::PbcoreXmlEntry#build with raw_metadata with asset raw_metadata builds entry
expected: {"admin_data_gid"=>"gid://ams/admindata/1", "admin_set_id"=>"MyString", "asset_types"=>[], "audience_...."], "series_title"=>["Houston Symphony"], "subject"=>[], "topics"=>["Music"], "visibility"=>"open"}
got: {"admin_data_gid"=>"gid://ams/admindata/1", "admin_set_id"=>"MyString", "asset_types"=>[], "audience_...id"=>["d74384e6424246088871415afe6230f5"], "subject"=>[], "topics"=>["Music"], "visibility"=>"open"}
(compared using ==)
Diff:
@@ -29,6 +29,7 @@
"segment_description" => [],
"series_description" => ["Houston Symphony is a series of live recordings of the Houston Symphony orchestral performances."],
"series_title" => ["Houston Symphony"],
+"sonyci_id" => ["d74384e6424246088871415afe6230f5"],
"subject" => [],
"topics" => ["Music"],
"visibility" => "open",
Raw output
Failure/Error:
expect(xml_entry.parsed_metadata).to eq(
{
"bulkrax_identifier"=>"1-Asset-0-1",
"bulkrax_importer_id"=>1,
"model"=>"AssetResource",
"id"=>"cpb-aacip-20-000000hr",
"series_title"=>["Houston Symphony"],
"description"=>["5/11/96"],
"episode_description"=>[],
"series_description"=>
expected: {"admin_data_gid"=>"gid://ams/admindata/1", "admin_set_id"=>"MyString", "asset_types"=>[], "audience_...."], "series_title"=>["Houston Symphony"], "subject"=>[], "topics"=>["Music"], "visibility"=>"open"}
got: {"admin_data_gid"=>"gid://ams/admindata/1", "admin_set_id"=>"MyString", "asset_types"=>[], "audience_...id"=>["d74384e6424246088871415afe6230f5"], "subject"=>[], "topics"=>["Music"], "visibility"=>"open"}
(compared using ==)
Diff:
@@ -29,6 +29,7 @@
"segment_description" => [],
"series_description" => ["Houston Symphony is a series of live recordings of the Houston Symphony orchestral performances."],
"series_title" => ["Houston Symphony"],
+"sonyci_id" => ["d74384e6424246088871415afe6230f5"],
"subject" => [],
"topics" => ["Music"],
"visibility" => "open",
./spec/models/bulkrax/pbcore_xml_entry_spec.rb:170:in `block (5 levels) in <module:Bulkrax>'
Loading