Sha256: c42587a464f681fd9ef4fd80bf194aa6897548da08604a8da05dfc11ab34d9e9
Contents?: true
Size: 1.45 KB
Versions: 1
Compression:
Stored size: 1.45 KB
Contents
shared_examples_for GroupDocs::Signature::ResourceMethods do describe '.resources!' do before(:each) do mock_api_server(load_json('envelopes_resources')) end it 'accepts access credentials hash' do lambda do described_class.resources!({}, :client_id => 'client_id', :private_key => 'private_key') end.should_not raise_error() end it 'allows passing options' do lambda { described_class.resources!(:status_ids => %w(sdfj943fjof043fj)) }.should_not raise_error() end it 'returns resources hash' do described_class.resources!.should be_a(Hash) end it 'returns hash with documents as array of GroupDocs::Document objects' do documents = described_class.resources![:documents] documents.should be_an(Array) documents.each do |document| document.should be_a(GroupDocs::Document) end end it 'returns hash with recipients as array of GroupDocs::Signature::Recipient objects' do recipients = described_class.resources![:recipients] recipients.should be_an(Array) recipients.each do |recipient| recipient.should be_a(GroupDocs::Signature::Recipient) end end it 'returns hash with other values as array of strings' do dates = described_class.resources![:dates] dates.should be_an(Array) dates.each do |date| date.should be_a(String) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
groupdocs-2.3.0 | spec/support/shared_examples/signature/shared/resource_methods.rb |