Skip to content

Commit bc5a688

Browse files
committed
20201014 update 1: update test case
1 parent 3dad548 commit bc5a688

File tree

2 files changed

+26
-77
lines changed

2 files changed

+26
-77
lines changed

spec/api/cells_worksheets_api_spec.rb

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -27,32 +27,32 @@
2727
end
2828

2929

30-
# unit tests for cells_worksheets_put_worksheet_background
31-
# Set worksheet background image.
32-
#
33-
# @param name
34-
# @param sheet_name
35-
# @param png
36-
# @param [Hash] opts the optional parameters
37-
# @option opts [String] :folder
38-
# @option opts [String] :storage storage name.
39-
# @return [CellsCloudResponse]
40-
describe 'cells_worksheets_put_worksheet_background test' do
41-
it "should work" do
42-
name = $BOOK1
43-
sheet_name = $SHEET1
44-
aFile = File.new(File.expand_path("data/WaterMark.png"),"r")
45-
png = aFile.sysread(aFile.size)
46-
aFile.close
47-
folder = $TEMPFOLDER
48-
result = @instance.delete_file( folder+"/"+name)
49-
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
50-
expect(result.uploaded.size).to be > 0
51-
result = @instance.cells_worksheets_put_worksheet_background(name, sheet_name, png, { :folder=>folder})
52-
expect(result.code).to eql(200)
53-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
54-
end
55-
end
30+
# # unit tests for cells_worksheets_put_worksheet_background
31+
# # Set worksheet background image.
32+
# #
33+
# # @param name
34+
# # @param sheet_name
35+
# # @param png
36+
# # @param [Hash] opts the optional parameters
37+
# # @option opts [String] :folder
38+
# # @option opts [String] :storage storage name.
39+
# # @return [CellsCloudResponse]
40+
# describe 'cells_worksheets_put_worksheet_background test' do
41+
# it "should work" do
42+
# name = $BOOK1
43+
# sheet_name = $SHEET1
44+
# aFile = File.new(File.expand_path("data/WaterMark.png"),"r")
45+
# png = aFile.sysread(aFile.size)
46+
# aFile.close
47+
# folder = $TEMPFOLDER
48+
# result = @instance.delete_file( folder+"/"+name)
49+
# result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
50+
# expect(result.uploaded.size).to be > 0
51+
# result = @instance.cells_worksheets_put_worksheet_background(name, sheet_name, png, { :folder=>folder})
52+
# expect(result.code).to eql(200)
53+
# # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
54+
# end
55+
# end
5656
# unit tests for cells_worksheets_delete_worksheet_background
5757
# Set worksheet background image.
5858
#

spec/api/o_auth_api_spec.rb

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)