Skip to content

Commit

Permalink
use correct xml
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Dec 27, 2018
1 parent 285c8fd commit 4e9abf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/requests/metadata_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4e9abf8

Please sign in to comment.