diff --git a/spec/models/event_spec.rb b/spec/models/event_spec.rb index 4c4aac7cb..a1ddf699c 100644 --- a/spec/models/event_spec.rb +++ b/spec/models/event_spec.rb @@ -81,7 +81,7 @@ it "should transform keys" do Event.camelcase_nested_objects(subject.uuid) - expect(subject.subj).to eq({"datePublished"=>"2006-06-13T16:14:19Z", "id"=>"https://doi.org/10.5061/dryad.47sd5e/1", "registrantId"=>"datacite.datacite"}) + expect(subject.subj.keys).to include("datePublished", "registrantId", "id") end end end