From 4e9abf85807ce1870e93d8a4b75b290b0da1574f Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Thu, 27 Dec 2018 13:26:12 +0100 Subject: [PATCH] use correct xml --- spec/requests/metadata_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/requests/metadata_spec.rb b/spec/requests/metadata_spec.rb index f2931675a..6311f22f7 100644 --- a/spec/requests/metadata_spec.rb +++ b/spec/requests/metadata_spec.rb @@ -65,7 +65,7 @@ before { post "/dois/#{doi.doi}/metadata", params: valid_attributes.to_json, headers: headers } it 'creates a metadata record' do - expect(Base64.decode64(json.dig('data', 'attributes', 'xml'))).to eq(xml.rstrip) + expect(Base64.decode64(json.dig('data', 'attributes', 'xml'))).to eq(xml) expect(json.dig('data', 'attributes', 'namespace')).to eq("http://datacite.org/schema/kernel-4") end