spec/qualtrics/response_spec.rb in qualtrics-0.5.9b vs spec/qualtrics/response_spec.rb in qualtrics-0.5.9
- old
+ new
@@ -59,13 +59,13 @@
m.get('/random_content') { |env| [ 200, {'Content-Type'=>'random stuff'}, 'not a real body' ]}
end
end
end
- it 'can return RAW csv file' do
+ it 'can parse csv' do
raw_response = content_endpoints.get('/csv_response')
response = Qualtrics::Response.new(raw_response)
- expect(response.result).to eql ('csv,stuff')
+ expect(response.result).to eql ([%w(csv stuff)])
end
it 'can parse json' do
raw_response = content_endpoints.get('/json_response')
response = Qualtrics::Response.new(raw_response)