Skip to content

Commit

Permalink
empty container attribute should be hash. #331
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Aug 4, 2019
1 parent 29324a1 commit 9b0e3c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/requests/dois_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 9b0e3c7

Please sign in to comment.