Skip to content

Commit

Permalink
chane in test
Browse files Browse the repository at this point in the history
  • Loading branch information
kjgarza committed Nov 22, 2018
1 parent 9c97125 commit a191890
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/requests/reports_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@
context 'Resolution when the request is valid' do
let(:resolutions) {file_fixture('report_resolution.json').read}
let(:headers) { {
'Content-Type' => 'json',
'Content-Type' => 'application/gzip',
'Content-Encoding' => 'gzip',
'ACCEPT'=>'json',
'ACCEPT'=>'gzip',
'Authorization' => 'Bearer ' + bearer
} }
let(:gzip) do
Expand All @@ -277,6 +277,7 @@
gzip_2 = Base64.decode64(json.dig("report", "gzip"))
fjson = parser.parse(ActiveSupport::Gzip.decompress(gzip_2))
expect(fjson.dig("report-datasets",0,"yop")).to eq("2017")
expect(fjson.dig("report-datasets",0,"platform")).to eq("datacite")
expect(fjson.dig("report-datasets").length).to eq(34)
end

Expand Down

0 comments on commit a191890

Please sign in to comment.