Sha256: 4296763f9936f440c1cb022d6a0aa24823c070c2d10f914ccffea8300aee4bcd

Contents?: true

Size: 1.67 KB

Versions: 3

Compression:

Stored size: 1.67 KB

Contents

=begin
#Web API Swagger specification

#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: 1.0

Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 2.3.0-SNAPSHOT

=end

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,$api_version,$baseurl)
    $VERBOSE = nil
  end

  after do
    # run after each test
  end

  describe 'cells_ranges_post_worksheet_cells_range_outline_border test' do
    it "should work" do
      name = $BOOK1
      sheet_name = $SHEET1
	    color = AsposeCellsCloud::Color.new({:A=>255})
	    range = AsposeCellsCloud::Range.new({:ColumnCount=>1,:FirstColumn=>1,:FirstRow=>1,:RowCount=>10})
      range_operate = AsposeCellsCloud::RangeSetOutlineBorderRequest.new({:BorderEdge=>'LeftBorder',:BorderStyle=>'Dotted',:BorderColor=>color,:Range=>range })
      folder = $TEMPFOLDER
      # 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_ranges_post_worksheet_cells_range_outline_border(name, sheet_name, { :range_operate=>range_operate, :folder=>folder})
      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-22.3 spec/api/cells_simple_spec.rb
aspose_cells_cloud-22.2 spec/api/cells_simple_spec.rb
aspose_cells_cloud-22.1 spec/api/cells_simple_spec.rb