spec/support/shared_examples/signature/shared/recipient_methods.rb in groupdocs-1.9.0 vs spec/support/shared_examples/signature/shared/recipient_methods.rb in groupdocs-2.0.0
- old
+ new
@@ -6,15 +6,15 @@
end
it 'accepts access credentials hash' do
lambda do
subject.recipients!({}, :client_id => 'client_id', :private_key => 'private_key')
- end.should_not raise_error(ArgumentError)
+ end.should_not raise_error()
end
it 'can be public' do
- lambda { subject.recipients!(:public => true) }.should_not raise_error(ArgumentError)
+ lambda { subject.recipients!(:public => true) }.should_not raise_error()
end
it 'returns array of GroupDocs::Signature::Recipient objects' do
recipients = subject.recipients!
recipients.should be_an(Array)
@@ -34,10 +34,10 @@
end
it 'accepts access credentials hash' do
lambda do
subject.remove_recipient!(recipient, :client_id => 'client_id', :private_key => 'private_key')
- end.should_not raise_error(ArgumentError)
+ end.should_not raise_error()
end
it 'raises error if recipient is not GroupDocs::Signature::Recipient object' do
lambda { subject.remove_recipient!('Recipient') }.should raise_error(ArgumentError)
end