branch: elpa/buttercup commit 3a0a58fb6356f64eb768638104961dfa28024069 Author: Jorgen Schaefer <cont...@jorgenschaefer.de> Commit: Jorgen Schaefer <cont...@jorgenschaefer.de>
Test buttercup--print. --- buttercup-test.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/buttercup-test.el b/buttercup-test.el index 735bd9e..20b7a42 100644 --- a/buttercup-test.el +++ b/buttercup-test.el @@ -629,6 +629,17 @@ (buttercup-reporter-batch 'unknown-event nil)) :to-throw))))) +(describe "The `buttercup--print' function" + (before-each + (spy-on 'send-string-to-terminal)) + + (it "should send a formatted string to the terminal" + (buttercup--print "Hello, %s" "world") + + (expect 'send-string-to-terminal + :to-have-been-called-with + "Hello, world"))) + ;;;;;;;;;;;;; ;;; Utilities