Created
April 30, 2009 04:11
-
-
Save wanderingmatt/104254 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def @wb.puts *args; end | |
def test_puts_got_called | |
def @wb.puts arg | |
@putss ||= [] | |
@putss << arg if arg | |
@putss | |
end | |
@wb.recipe do | |
work :name, :one do | |
'** name' | |
end | |
work :one do | |
'** one' | |
end | |
end | |
@wb.run(:name) | |
assert_equal [], @wb.puts(nil) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment