Permalink
Browse files

Fix view test.

  • Loading branch information...
1 parent 16a23e6 commit c11f9dde7b15759372453203e476a3d9a31db704 @knaveofdiamonds committed May 9, 2012
Showing with 4 additions and 5 deletions.
  1. +4 −5 test/test_view.rb
View
@@ -10,12 +10,11 @@
asciifier = MiniTest::Mock.new
asciifier.expect(:asciify, "foo", ["00:01"])
@view.asciifier = asciifier
- @screen.expect(:display, nil, ["foo"])
- pomodoro = MiniTest::Mock.new
- pomodoro.expect(:time_remaining, 1, [])
-
+ @screen.expect(:display, nil, ["foo", :red, true])
+ pomodoro = Pompom::Pomodoro.new(1)
+
@view.update(pomodoro)
-
+
@screen.verify
asciifier.verify
end

0 comments on commit c11f9dd

Please sign in to comment.