spec/support/shared_examples/signature/shared/recipient_methods.rb in groupdocs-1.2.11 vs spec/support/shared_examples/signature/shared/recipient_methods.rb in groupdocs-1.3.0

- old
+ new

@@ -5,11 +5,11 @@ 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 'returns array of GroupDocs::Signature::Recipient objects' do recipients = subject.recipients! @@ -29,14 +29,14 @@ mock_api_server('{ "status": "Ok", "result": {}}') end it 'accepts access credentials hash' do lambda do - subject.remove_recipient!(recipient, client_id: 'client_id', private_key: 'private_key') + subject.remove_recipient!(recipient, :client_id => 'client_id', :private_key => 'private_key') end.should_not raise_error(ArgumentError) end it 'raises error if recipient is not GroupDocs::Signature::Recipient object' do - -> { subject.remove_recipient!('Recipient') }.should raise_error(ArgumentError) + lambda { subject.remove_recipient!('Recipient') }.should raise_error(ArgumentError) end end end