Sha256: d39a0cee66c911a228804c62b7c1acf4ae3c956a3d55d90092b91baa934a8269

Contents?: true

Size: 1.83 KB

Versions: 22

Compression:

Stored size: 1.83 KB

Contents

require 'spec_helper'
require 'json'


describe 'Cells Sparkline Group Api' do
  before do
     @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
     $VERBOSE = nil
  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 = $PivTestFile
      sheet_name = $SHEET1
      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_sparkline_groups_get_worksheet_sparkline_groups(name, sheet_name, { :folder=>folder})
      expect(result.code).to eql(200)
      result = @instance.cells_sparkline_groups_put_worksheet_sparkline_group(name, sheet_name,"Line","C6:E13",'false', "G6:G13", { :folder=>folder})
      expect(result.code).to eql(200)
      result = @instance.cells_sparkline_groups_get_worksheet_sparkline_group(name, sheet_name,0,{ :folder=>folder})
      expect(result.code).to eql(200)
      sparkline_group = AsposeCellsCloud::SparklineGroup.new({:DisplayHidden=>true})
      result = @instance.cells_sparkline_groups_post_worksheet_sparkline_group(name, sheet_name,0,sparkline_group,{ :folder=>folder})
      expect(result.code).to eql(200)
      result = @instance.cells_sparkline_groups_delete_worksheet_sparkline_group(name, sheet_name,0,{ :folder=>folder})
      expect(result.code).to eql(200)
      result = @instance.cells_sparkline_groups_delete_worksheet_sparkline_groups(name, sheet_name,{ :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

22 entries across 22 versions & 1 rubygems

Version Path
aspose_cells_cloud-22.12 spec/api/cells_sparkline_group_spec.rb
aspose_cells_cloud-22.11 spec/api/cells_sparkline_group_spec.rb
aspose_cells_cloud-22.10 spec/api/cells_sparkline_group_spec.rb
aspose_cells_cloud-22.9 spec/api/cells_sparkline_group_spec.rb
aspose_cells_cloud-22.8 spec/api/cells_sparkline_group_spec.rb
aspose_cells_cloud-22.7 spec/api/cells_sparkline_group_spec.rb
aspose_cells_cloud-22.6 spec/api/cells_sparkline_group_spec.rb
aspose_cells_cloud-22.5 spec/api/cells_sparkline_group_spec.rb
aspose_cells_cloud-22.4 spec/api/cells_sparkline_group_spec.rb
aspose_cells_cloud-22.3 spec/api/cells_sparkline_group_spec.rb
aspose_cells_cloud-22.2 spec/api/cells_sparkline_group_spec.rb
aspose_cells_cloud-22.1 spec/api/cells_sparkline_group_spec.rb
aspose_cells_cloud-21.12 spec/api/cells_sparkline_group_spec.rb
aspose_cells_cloud-21.11 spec/api/cells_sparkline_group_spec.rb
aspose_cells_cloud-21.10 spec/api/cells_sparkline_group_spec.rb
aspose_cells_cloud-21.8 spec/api/cells_sparkline_group_spec.rb
aspose_cells_cloud-21.7 spec/api/cells_sparkline_group_spec.rb
aspose_cells_cloud-21.6 spec/api/cells_sparkline_group_spec.rb
aspose_cells_cloud-21.5 spec/api/cells_sparkline_group_spec.rb
aspose_cells_cloud-21.1 spec/api/cells_sparkline_group_spec.rb