Sha256: 147a844dc5585ed691468dcb2c7daa92fe3a7b9c3be35d4abd781ee68af1442a
Contents?: true
Size: 668 Bytes
Versions: 2
Compression:
Stored size: 668 Bytes
Contents
require 'spec_helper' describe TP::Presenter do subject(:presenter) { klass.new markdown } let(:markdown) { <<-MD.gsub(/^ {6}/, '') # Header by itself # Bullets * Bullet 1 * Bullet 2 # Paragraph This is a really long paragraph. Kinda. MD } before :each do Keyboard.stub read: :return Screen.stub width: 20, height: 20, suggest: nil end describe "#present" do it "works" do Keyboard.should_receive(:wait_for_return).exactly(1).times Screen.should_receive(:clear!).exactly(5).times presenter.should_receive(:print).exactly(3).times presenter.present end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tp-0.1.1 | spec/lib/tp/presenter_spec.rb |
tp-0.1.0 | spec/lib/tp/presenter_spec.rb |