Sha256: 245c6bab4c78ec7371479df3c834ebd618c15971c1f4d5d4073f682aecfa679b

Contents?: true

Size: 1.73 KB

Versions: 1

Compression:

Stored size: 1.73 KB

Contents

require 'spec_helper'
require 'json'

# Unit tests for AsposeCellsCloud::CellsApi
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
# Please update as you see appropriate
describe 'CellsApi' do
  before do
    @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,"v3.0")
  end

  after do
    # run after each test
  end


# unit tests for cells_workbook_put_convert_workbook
  # Convert workbook from request content to some format.
  # 
  # @param [Hash] opts the optional parameters
  # @option opts [String] :format The format to convert.
  # @option opts [String] :password The workbook password.
  # @option opts [String] :out_path Path to save result
  # @return [File]
  describe 'cells_workbook_put_convert_workbook test' do
    it "should work" do
      format = 'pdf'
      password = nil
      out_path = "Tdd.pdf"
      name = $BOOK1
      folder = $TEMPFOLDER
      @instance.create_folder("ruby")
      @instance.copy_folder("ruby","ruby1")
      @instance.move_folder("ruby1","ruby")
      @instance.upload_file( "ruby/"+name,  ::File.open("data/" +name,"r") {|io| io.read(io.size) })      
      @instance.copy_file("ruby/"+name,"ruby/1"+name)
     # @instance.delete_file("ruby/"+name)
      @instance.move_file("ruby/1"+name,"ruby/"+name)
      @instance.download_file("ruby/"+name)
      #@instance.delete_file("ruby/"+name)
      #@instance.delete_folder("ruby")
      

      #@instance.cells_workbook_put_convert_workbook(::File.open("data/Book1.xlsx","r") {|io| io.read(io.size) },{:format=>format,out_path=>out_path})
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  

  end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aspose_cells_cloud-20.2 spec/api/cells_storage_spec.rb