Sha256: cd26fe097cc5cf90a279768bd67dda27c29b112246fece9deec8f97b5370e7df

Contents?: true

Size: 590 Bytes

Versions: 12

Compression:

Stored size: 590 Bytes

Contents

require 'spec_helper'

describe TP::SlideDeck do
  subject(:slide_deck) { klass.new slides }

  let(:slides) {
    [
      TP::SlideFactory.from_markdown("# First Slide\n\n* Bullet 1\n* Bullet 2"),
      TP::SlideFactory.from_markdown("# Second Slide\n\nThis is a paragraph")
    ]
  }

  its(:height) { should == 4 }
  its(:width) { should == 12 }

  context "with only really long paragraphs" do
    let (:slides) {
      [TP::SlideFactory.from_markdown("# First Slide\n\n#{'word ' * 100}")]
    }

    its(:width) { should == 80 }
  end

  it { slide_deck.frames.count.should == 4 }
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
tp-0.7.0 spec/lib/tp/slide_deck_spec.rb
tp-0.7.0pre2 spec/lib/tp/slide_deck_spec.rb
tp-0.7.0pre1 spec/lib/tp/slide_deck_spec.rb
tp-0.6.2 spec/lib/tp/slide_deck_spec.rb
tp-0.6.2pre2 spec/lib/tp/slide_deck_spec.rb
tp-0.6.2pre1 spec/lib/tp/slide_deck_spec.rb
tp-0.6.1 spec/lib/tp/slide_deck_spec.rb
tp-0.6.0 spec/lib/tp/slide_deck_spec.rb
tp-0.5.1 spec/lib/tp/slide_deck_spec.rb
tp-0.5.0 spec/lib/tp/slide_deck_spec.rb
tp-0.4.1 spec/lib/tp/slide_deck_spec.rb
tp-0.4.0 spec/lib/tp/slide_deck_spec.rb