spec/groupdocs/document_spec.rb in groupdocs-0.2.7 vs spec/groupdocs/document_spec.rb in groupdocs-0.2.8
- old
+ new
@@ -452,9 +452,14 @@
annotations.should be_an(Array)
annotations.each do |annotation|
annotation.should be_a(GroupDocs::Document::Annotation)
end
end
+
+ it 'returns empty array if annotations are null in reponse' do
+ mock_api_server('{"status": "Ok", "result": {"annotations": null }}')
+ subject.annotations!.should be_empty
+ end
end
describe '#details!' do
before(:each) do
mock_api_server(load_json('comparison_document'))