Sha256: a09be7d2e7546576254c3b9cc5b426872a2f0f3b8a35354fceb06d8dc7b392f4
Contents?: true
Size: 458 Bytes
Versions: 4
Compression:
Stored size: 458 Bytes
Contents
require 'spec_helper' describe TP::Slide::HeaderOnly do subject { slide } let(:markdown) { "# Header" } let(:slide) { klass.new markdown } before do Screen.stub width: 20 end its(:width) { should == 6 } its(:height) { should == 1 } describe "#render" do subject(:lines) { slide.render.lines.to_a } it { lines.count.should == 1 } it "centers the header" do lines[0].should == "Header".center(20) end end end
Version data entries
4 entries across 4 versions & 1 rubygems