Sha256: c5273d1c993c2324348618e38f6a52a320a3fa370a33a03f12f9ce9cc1ab82cc
Contents?: true
Size: 1.8 KB
Versions: 1
Compression:
Stored size: 1.8 KB
Contents
# Copyright (c) Aspose 2002-2014. All Rights Reserved. # # LICENSE: This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 3 # of the License, or (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://opensource.org/licenses/gpl-3.0.html>;. # # @package Aspose_Cloud_SDK_For_Ruby # @author Assad Mahmood Qazi <assad.mahmood@aspose.com> # @link https://github.com/asposeforcloud/Aspose_Cloud_SDK_For_Ruby/tree/revamp require 'test/unit' require_relative '../lib/asposecloud' class CellTests < Test::Unit::TestCase def test_convert_storage_file Aspose::Cloud::Common::AsposeApp.app_key = '8356c76c7412f32bb85ae7472e842da4' Aspose::Cloud::Common::AsposeApp.app_sid = '8EB6E644-4A40-4B50-8012-135D1F8F7513' Aspose::Cloud::Common::AsposeApp.output_location = './Output/' Aspose::Cloud::Common::Product.set_base_product_uri('http://test.aspose.com/v1.1') # Create Object of folder class folder = Aspose::Cloud::AsposeStorage::Folder.new response = folder.upload_file './Data/test_convert_cell.xlsx' assert_equal true, response # Create object of cell converter class converter = Aspose::Cloud::Cells::Converter.new('test_convert_cell.xlsx') assert_nothing_thrown 'Error' do converter.convert('./Output/converted_file.tiff','tiff') end assert_equal true, File.exist?('./Output/converted_file.tiff') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
asposecloud-1.0.0 | Tests/cell_tests.rb |