Sha256: 176d9e0f37d35c8612edfb7ea1af2fac5d3f1d181365b38d9690410172f65de2
Contents?: true
Size: 1.11 KB
Versions: 3
Compression:
Stored size: 1.11 KB
Contents
require 'spec_helper' require 'json' # Unit tests for AsposeCellsCloud::CellsTaskApi # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate describe 'CellsTaskApi' do before do @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,"v3.0") end after do # run after each test end # unit tests for one case describe 'cells_get_worksheet_cell test' do it "should work" do name = $BOOK1 sheet_name = $SHEET1 cell_or_method_name = 'firstcell' folder = $TEMPFOLDER storage = nil result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) }) expect(result.uploaded.size).to be > 0 result = @instance.cells_get_worksheet_cell(name, sheet_name, cell_or_method_name, { :folder=>folder}) print(result[0]) print(result[1]) print(result[2]) #expect(result.code).to eql(200) # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
aspose_cells_cloud-20.7 | spec/api/cells_one_spec.rb |
aspose_cells_cloud-20.6 | spec/api/cells_one_spec.rb |
aspose_cells_cloud-20.4 | spec/api/cells_one_spec.rb |