Sha256: 323351b9a18436f78fe2d5e40eb747f5db25a29569f28d7d0edd0b3ed00cbf19
Contents?: true
Size: 928 Bytes
Versions: 2
Compression:
Stored size: 928 Bytes
Contents
require 'spec_helper' require 'json' describe 'CellsApi' do before do @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl) $VERBOSE = nil end after do # run after each test end describe 'post_protect test' do it "should work" do assembly_test_xlsx = 'assemblytest.xlsx' data_source_xlsx = 'datasource.xlsx' mapFiles = { } mapFiles[assembly_test_xlsx]= ::File.open(File.expand_path("TestData/"+assembly_test_xlsx),"r") mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r") protectWorkbookRequst = AsposeCellsCloud::ProtectWorkbookRequst.new(); request = AsposeCellsCloud::PostProtectRequest.new(:File=>mapFiles,:password=>'123456',:protectWorkbookRequst =>protectWorkbookRequst); @instance.post_protect(request); end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aspose_cells_cloud-23.9 | spec/onecase_spec.rb |
aspose_cells_cloud-23.8 | spec/onecase_spec.rb |