diff options
| author | Zsolt Kozaroczy <[email protected]> | 2020-09-11 00:36:29 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-09-11 00:36:29 +0200 |
| commit | 282eec44ef01746ee25931fa6cd287ad083fd40b (patch) | |
| tree | 14504bf429ca264812679ca971c1592853d3f762 /test/drawing/tc_pic.rb | |
| parent | 317e8244e4d17c394c1e181f86df3974623fb865 (diff) | |
| download | caxlsx-282eec44ef01746ee25931fa6cd287ad083fd40b.tar.gz caxlsx-282eec44ef01746ee25931fa6cd287ad083fd40b.zip | |
Restructure examples folder (#47)
Split examples into separate markdown files, each containing a description, sample code, and a screenshot of the resulting xlsx document.
The script `generate.rb` is provided to actually generate the example documents by executing the sample code contained in the markdown files.
Diffstat (limited to 'test/drawing/tc_pic.rb')
| -rw-r--r-- | test/drawing/tc_pic.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/drawing/tc_pic.rb b/test/drawing/tc_pic.rb index 67e6c416..8c2088d4 100644 --- a/test/drawing/tc_pic.rb +++ b/test/drawing/tc_pic.rb @@ -5,10 +5,10 @@ class TestPic < Test::Unit::TestCase def setup @p = Axlsx::Package.new ws = @p.workbook.add_worksheet - @test_img = @test_img_jpg = File.dirname(__FILE__) + "/../../examples/image1.jpeg" - @test_img_png = File.dirname(__FILE__) + "/../../examples/image1.png" - @test_img_gif = File.dirname(__FILE__) + "/../../examples/image1.gif" - @test_img_fake = File.dirname(__FILE__) + "/../../examples/image1_fake.jpg" + @test_img = @test_img_jpg = File.dirname(__FILE__) + "/../fixtures/image1.jpeg" + @test_img_png = File.dirname(__FILE__) + "/../fixtures/image1.png" + @test_img_gif = File.dirname(__FILE__) + "/../fixtures/image1.gif" + @test_img_fake = File.dirname(__FILE__) + "/../fixtures/image1_fake.jpg" @image = ws.add_image :image_src => @test_img, :hyperlink => 'https://github.com/randym', :tooltip => "What's up doc?", :opacity => 5 end |
