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/tc_package.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/tc_package.rb')
| -rw-r--r-- | test/tc_package.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/tc_package.rb b/test/tc_package.rb index 18c08f5c..ac79b487 100644 --- a/test/tc_package.rb +++ b/test/tc_package.rb @@ -65,7 +65,7 @@ class TestPackage < Test::Unit::TestCase end @fname = 'axlsx_test_serialization.xlsx' - img = File.expand_path('../../examples/image1.jpeg', __FILE__) + img = File.expand_path('../fixtures/image1.jpeg', __FILE__) ws.add_image(:image_src => img, :noSelect => true, :noMove => true, :hyperlink=>"http://axlsx.blogspot.com") do |image| image.width=720 image.height=666 @@ -73,12 +73,12 @@ class TestPackage < Test::Unit::TestCase image.start_at 5, 5 image.end_at 10, 10 end - ws.add_image :image_src => File.expand_path('../../examples/image1.gif', __FILE__) do |image| + ws.add_image :image_src => File.expand_path('../fixtures/image1.gif', __FILE__) do |image| image.start_at 0, 20 image.width=360 image.height=333 end - ws.add_image :image_src => File.expand_path('../../examples/image1.png', __FILE__) do |image| + ws.add_image :image_src => File.expand_path('../fixtures/image1.png', __FILE__) do |image| image.start_at 9, 20 image.width = 180 image.height = 167 |
