spec/test_spec.rb in powerpoint-1.7 vs spec/test_spec.rb in powerpoint-1.8
- old
+ new
@@ -4,11 +4,14 @@
before(:all) do
@deck = Powerpoint::Presentation.new
@deck.add_intro 'Bicycle Of the Mind', 'created by Steve Jobs'
@deck.add_textual_slide 'Why Mac?', ['Its cool!', 'Its light!']
@deck.add_textual_slide 'Why Iphone?', ['Its fast!', 'Its cheap!']
- @deck.add_pictorial_slide 'JPG Logo', 'samples/images/sample_jpg.jpg'
+ @deck.add_pictorial_slide 'JPG Logo', 'samples/images/sample_png.png'
+ @deck.add_text_picture_slide('Text Pic Split', 'samples/images/sample_png.png', content = ['Here is a string', 'here is another'])
@deck.add_pictorial_slide 'PNG Logo', 'samples/images/sample_png.png'
+ @deck.add_picture_description_slide('Pic Desc', 'samples/images/sample_png.png', content = ['Here is a string', 'here is another'])
+ @deck.add_picture_description_slide('JPG Logo', 'samples/images/sample_jpg.jpg', content = ['descriptions'])
@deck.add_pictorial_slide 'GIF Logo', 'samples/images/sample_gif.gif', {x: 124200, y: 3356451, cx: 2895600, cy: 1013460}
@deck.add_textual_slide 'Why Android?', ['Its great!', 'Its sweet!']
@deck.save 'samples/pptx/sample.pptx' # Examine the PPTX file
end