spec/support/shared_examples/signature/shared/recipient_methods.rb in groupdocs-1.4.2 vs spec/support/shared_examples/signature/shared/recipient_methods.rb in groupdocs-1.5.0

- old
+ new

@@ -5,11 +5,15 @@ mock_api_server(load_json('template_get_recipients')) end it 'accepts access credentials hash' do lambda do - subject.recipients!(:client_id => 'client_id', :private_key => 'private_key') + subject.recipients!({}, :client_id => 'client_id', :private_key => 'private_key') end.should_not raise_error(ArgumentError) + end + + it 'can be public' do + lambda { subject.recipients!(:public => true) }.should_not raise_error(ArgumentError) end it 'returns array of GroupDocs::Signature::Recipient objects' do recipients = subject.recipients! recipients.should be_an(Array)