spec/groupdocs/job_spec.rb in groupdocs-0.2.4 vs spec/groupdocs/job_spec.rb in groupdocs-0.2.5

- old
+ new

@@ -79,11 +79,15 @@ it { should respond_to(:requested_time) } it { should respond_to(:requested_time=) } describe '#documents=' do let(:response) do - [{ id: 1, guid: 'fhy9yh94u238dgf', status: 0, outputs: [] }, - { id: 2, guid: 'ofh9rhy9rfohf9s', status: 2, outputs: [] }] + { + inputs: [ + { id: 1, guid: 'fhy9yh94u238dgf', status: 0, outputs: [] }, + { id: 2, guid: 'ofh9rhy9rfohf9s', status: 2, outputs: [] } + ] + } end it 'saves documents as array of GroupDocs::Document objects' do subject.documents = response documents = subject.documents