spec/groupdocs/signature_spec.rb in groupdocs-1.2.11 vs spec/groupdocs/signature_spec.rb in groupdocs-1.3.0
- old
+ new
@@ -9,11 +9,11 @@
mock_api_server(load_json('signatures_get'))
end
it 'accepts access credentials hash' do
lambda do
- described_class.get!(client_id: 'client_id', private_key: 'private_key')
+ described_class.get!(:client_id => 'client_id', :private_key => 'private_key')
end.should_not raise_error(ArgumentError)
end
it 'returns array of GroupDocs::Signature objects' do
signatures = described_class.get!
@@ -59,11 +59,11 @@
mock_api_server(load_json('signature_create'))
end
it 'accepts access credentials hash' do
lambda do
- subject.create!('Signature', client_id: 'client_id', private_key: 'private_key')
+ subject.create!('Signature', :client_id => 'client_id', :private_key => 'private_key')
end.should_not raise_error(ArgumentError)
end
it 'uses hashed version of self as request body' do
subject.should_receive(:to_hash)
@@ -82,10 +82,10 @@
mock_api_server('{ "status": "Ok", "result": {}}')
end
it 'accepts access credentials hash' do
lambda do
- subject.delete!(client_id: 'client_id', private_key: 'private_key')
+ subject.delete!(:client_id => 'client_id', :private_key => 'private_key')
end.should_not raise_error(ArgumentError)
end
end
end