Sha256: e880f9048cda38492ecdeb7c178d4dc2a0a57919b7dea2bc99460daf91c15450
Contents?: true
Size: 841 Bytes
Versions: 2
Compression:
Stored size: 841 Bytes
Contents
require 'powerpoint' describe 'Powerpoint parsing a sample PPTX file' do 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 'PNG Logo', 'samples/images/sample_png.png' @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 it 'Create a PPTX file successfully.' do #@deck.should_not be_nil end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
powerpoint-1.7 | spec/test_spec.rb |
powerpoint-1.6 | spec/test_spec.rb |