spec/groupdocs/document_spec.rb in groupdocs-1.2.9 vs spec/groupdocs/document_spec.rb in groupdocs-1.2.10

- old
+ new

@@ -768,9 +768,21 @@ subject.should_receive(:convert_access_rights_to_byte).with(%w(view)) subject.set_shared_link_access_rights! %w(view) end end + describe '#set_session_callback!' do + before(:each) do + mock_api_server('{ "status": "Ok", "result": {}}') + end + + it 'accepts access credentials hash' do + lambda do + subject.set_session_callback!('http://www.example.com', client_id: 'client_id', private_key: 'private_key') + end.should_not raise_error(ArgumentError) + end + end + describe '#method_missing' do it 'passes unknown methods to file object' do -> { subject.name }.should_not raise_error(NoMethodError) end