spec/groupdocs/signature_spec.rb in groupdocs-1.9.0 vs spec/groupdocs/signature_spec.rb in groupdocs-2.0.0
- old
+ new
@@ -10,11 +10,11 @@
end
it 'accepts access credentials hash' do
lambda do
described_class.get!(:client_id => 'client_id', :private_key => 'private_key')
- end.should_not raise_error(ArgumentError)
+ end.should_not raise_error()
end
it 'returns array of GroupDocs::Signature objects' do
signatures = described_class.get!
signatures.should be_an(Array)
@@ -32,11 +32,11 @@
end
it 'accepts access credentials hash' do
lambda do
described_class.get_for_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 { described_class.get_for_recipient!('Recipient') }.should raise_error(ArgumentError)
end
@@ -90,11 +90,11 @@
end
it 'accepts access credentials hash' do
lambda do
subject.create!('Signature', :client_id => 'client_id', :private_key => 'private_key')
- end.should_not raise_error(ArgumentError)
+ end.should_not raise_error()
end
it 'uses hashed version of self as request body' do
subject.should_receive(:to_hash)
subject.create!('Signature')
@@ -115,11 +115,11 @@
end
it 'accepts access credentials hash' do
lambda do
subject.create_for_recipient!(recipient, 'Signature', :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.create_for_recipient!('Recipient') }.should raise_error(ArgumentError)
end
@@ -142,11 +142,11 @@
end
it 'accepts access credentials hash' do
lambda do
subject.delete!(:client_id => 'client_id', :private_key => 'private_key')
- end.should_not raise_error(ArgumentError)
+ end.should_not raise_error()
end
end
describe '#signature_data!' do
before(:each) do
@@ -154,11 +154,11 @@
end
it 'accepts access credentials hash' do
lambda do
subject.signature_data!(:client_id => 'client_id', :private_key => 'private_key')
- end.should_not raise_error(ArgumentError)
+ end.should_not raise_error()
end
it 'returns data' do
subject.signature_data!.should == 'Data'
end
@@ -176,11 +176,11 @@
end
it 'accepts access credentials hash' do
lambda do
subject.initials_data!(:client_id => 'client_id', :private_key => 'private_key')
- end.should_not raise_error(ArgumentError)
+ end.should_not raise_error()
end
it 'returns data' do
subject.initials_data!.should == 'Data'
end
@@ -189,19 +189,6 @@
lambda do
subject.initials_data!
end.should change(subject, :initials_data)
end
end
-
- describe '#sign_document_status!' do
- before(:each) do
- mock_api_server(load_json('sign_documents'))
- end
-
- it 'accepts access credentials hash' do
- lambda do
- subject.initials_data!(:client_id => 'client_id', :private_key => 'private_key')
- end.should_not raise_error(ArgumentError)
- end
- end
-
end