Sha256: 738fdd8b9a0560a2adc851ec38f24e236c7a5a9d15bac420ee7a63bfc326d0d7

Contents?: true

Size: 986 Bytes

Versions: 1

Compression:

Stored size: 986 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")
      protectWorkbookRequest = AsposeCellsCloud::ProtectWorkbookRequest.new(:aways_open_read_only=>true, :encrypt_with_password=>'123456')
      request =   AsposeCellsCloud::PostProtectRequest.new(:File=>mapFiles,:protectWorkbookRequest=>protectWorkbookRequest ,:password=>'123456');
      @instance.post_protect(request);
    end
  end 
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aspose_cells_cloud-23.10 spec/one_case_spec.rb