|
27 | 27 | end |
28 | 28 |
|
29 | 29 |
|
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 |
56 | 56 | # unit tests for cells_worksheets_delete_worksheet_background |
57 | 57 | # Set worksheet background image. |
58 | 58 | # |
|
0 commit comments