spec/groupdocs/signature/template_spec.rb in groupdocs-1.2.11 vs spec/groupdocs/signature/template_spec.rb in groupdocs-1.3.0
- old
+ new
@@ -15,16 +15,16 @@
mock_api_server(load_json('templates_all'))
end
it 'accepts access credentials hash' do
lambda do
- described_class.all!({}, client_id: 'client_id', private_key: 'private_key')
+ described_class.all!({}, :client_id => 'client_id', :private_key => 'private_key')
end.should_not raise_error(ArgumentError)
end
it 'allows passing options' do
- -> { described_class.all!(page: 1, count: 3) }.should_not raise_error(ArgumentError)
+ lambda { described_class.all!(:page => 1, :count => 3) }.should_not raise_error(ArgumentError)
end
it 'returns array of GroupDocs::Signature::Template objects' do
templates = described_class.all!
templates.should be_an(Array)
@@ -47,16 +47,16 @@
mock_api_server('{ "status": "Ok", "result": {}}')
end
it 'accepts access credentials hash' do
lambda do
- subject.add_recipient!(recipient, client_id: 'client_id', private_key: 'private_key')
+ subject.add_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.add_recipient!('Recipient') }.should raise_error(ArgumentError)
+ lambda { subject.add_recipient!('Recipient') }.should raise_error(ArgumentError)
end
end
describe '#modify_recipient!' do
let(:recipient) do
@@ -67,14 +67,14 @@
mock_api_server('{ "status": "Ok", "result": {}}')
end
it 'accepts access credentials hash' do
lambda do
- subject.modify_recipient!(recipient, client_id: 'client_id', private_key: 'private_key')
+ subject.modify_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.modify_recipient!('Recipient') }.should raise_error(ArgumentError)
+ lambda { subject.modify_recipient!('Recipient') }.should raise_error(ArgumentError)
end
end
end