Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (17 sloc) 0.492 kb
require 'helper'
describe Pompom::View do
before do
@screen = MiniTest::Mock.new
@view = Pompom::View.new(@screen)
end
it "should display an asciified time on the screen when updated" do
asciifier = MiniTest::Mock.new
asciifier.expect(:asciify, "foo", ["00:01"])
@view.asciifier = asciifier
@screen.expect(:display, nil, ["foo", :red, true])
pomodoro = Pompom::Pomodoro.new(1)
@view.update(pomodoro)
@screen.verify
asciifier.verify
end
end
Jump to Line
Something went wrong with that request. Please try again.