diff --git a/spec/requests/dois_spec.rb b/spec/requests/dois_spec.rb index b87c69fef..c3853a225 100644 --- a/spec/requests/dois_spec.rb +++ b/spec/requests/dois_spec.rb @@ -2340,7 +2340,7 @@ patch "/dois/#{doi.doi}", update_attributes, headers expect(json.dig('data', 'attributes', 'descriptions')).to eq(descriptions) - expect(json.dig('data', 'attributes', 'container')).to be nil + expect(json.dig('data', 'attributes', 'container')).to be_empty end end @@ -2378,7 +2378,7 @@ get "/dois/#{doi.doi}", nil, headers expect(json.dig('data', 'attributes', 'descriptions')).to eq([{"description"=>"Data from: A new malaria agent in African hominids."}]) - expect(json.dig('data', 'attributes', 'container')).to be nil + expect(json.dig('data', 'attributes', 'container')).to be_empty patch "/dois/#{doi.doi}", update_attributes, headers